@import url("https://fonts.cdnfonts.com/css/Noto Sans");

:root {
  --wine: #611232;
  --wine-2: #7a1c3f;
  --beige: #e6d194;
  --text: #1f1f1f;
  --white: #ffffff;
  --pantone: #a57f2c;

  --container: 1600px;
  --pad-x: clamp(1rem, 3vw, 2rem);
  --pad-y: clamp(0.75rem, 2vw, 1rem);

  --gold: #b38e5d;

  --modules-top: #b38e5d;
  --modules-bottom: #611232;

  --hex-border: rgba(97, 18, 50, 0.55);

  --shadow: rgba(0, 0, 0, 0.14);
  --radius: 16px;

  --background: #2b2b2b;

  --stps-guinda: #611232;
  --stps-guinda-2: #9b2247;
  --stps-verde-2: #002f2a;
  --stps-verde: #1e5b4f;
  --stps-dorado: #e6d194;
  --stps-negro: #161a1d;
  --stps-gray: #98989a;
  --ink: rgba(22, 26, 29, 0.88);
  --muted: rgba(22, 26, 29, 0.72);

  --wine-soft: rgba(97, 18, 50, 0.12);
  --wine-soft-1: rgba(97, 18, 50, 0.32);

  --text-main: rgba(0, 0, 0, 0.82);
  --text-muted: rgba(0, 0, 0, 0.65);

  --card-bg: rgba(255, 255, 255, 0.8);
  --shadow: 0 18px 36px rgba(0, 0, 0, 0.1);

  --topCardH: clamp(460px, 58vh, 660px);
}
body {
  font-family: "Noto Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ffffff 18%,
    #fdf6ee 28%,
    #f3e3cc 42%,
    #e9cfab 55%,
    #d4b183 68%,
    #c09a66 78%,
    #a8744d 88%,
    #7a1d3a 100%
  );
  line-height: 1.6;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--pad-y) var(--pad-x);

  --side: clamp(240px, 24vw, 360px);

  display: grid;
  grid-template-columns: var(--side) 1fr var(--side);
  align-items: center;
  column-gap: clamp(0.75rem, 2vw, 1.25rem);
}

.brand {
  justify-self: start;
}

.brand-meta {
  justify-self: center;
  text-align: center;
}

.brand-desc {
  margin-top: 0.25rem;
  margin-inline: auto;
  max-width: 60ch;
  font-size: clamp(0.95rem, 1.7vw, 1.4rem);
  color: var(--wine);
  font-weight: 500;
}

.site-nav {
  justify-self: end;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.4rem, 1vw, 0.9rem);

  white-space: nowrap;
  flex-wrap: nowrap;
}

.brand__logo {
  width: clamp(70px, 10vw, 175px);
  height: auto;
  object-fit: contain;
}

.site-header__inner {
  align-items: center;
}

.brand-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--wine);
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(1.55rem, 3.8vw, 3.5rem);
}

@media (max-width: 820px) {
  .brand-meta {
    display: none;
  }
}

.site-nav__link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  font-size: clamp(0.95rem, 1.25vw, 1.55rem);
}

.site-nav__link:hover {
  background: rgba(97, 18, 50, 0.08);
  text-decoration: none;
  color: var(--pantone);
}

.site-nav__link.is-active {
  background: rgba(97, 18, 50, 0.12);
  color: var(--wine);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--background);
  margin: 4px 0;
  border-radius: 2px;
}

.container-1 {
  max-width: var(--container, 1600px);
  margin-inline: auto;
  padding-inline: var(--pad-x, 1.25rem);
}

.hero-text {
  text-align: center;
  margin-top: 0;
  margin-bottom: clamp(0.55rem, 1.2vw, 0.9rem);
}

.hero-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--wine);
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(1.55rem, 3.8vw, 3.5rem);
}

.hero-desc {
  margin: clamp(0.5rem, 1.4vw, 0.85rem) auto 0;
  max-width: 72ch;
  color: rgba(0, 0, 0, 0.75);
  font-size: clamp(0.95rem, 1.7vw, 1.5rem);
}

.modules {
  background: transparent;
  padding: clamp(1.2rem, 3vw, 2.2rem) 0;
  /* padding: clamp(2rem, 4vw, 3.5rem) 0; */
  position: relative;
  overflow: hidden;
}

.modules__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.modules__head {
  text-align: center;
  margin-bottom: clamp(1.25rem, 2.6vw, 2rem);
}

.modules__title {
  margin: 0 0 0.35rem 0;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.2px;
}

.modules__desc {
  margin: 0 auto;
  max-width: 70ch;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: rgba(255, 255, 255, 0.86);
}

.hex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(0.9rem, 2vw, 1.4rem);
  place-items: center;
}

.hex-card {
  width: 100%;
  max-width: 300px;
  perspective: 1100px;
}

.hex-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.hex-card__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hex-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.hex-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0px 3px 16px rgba(0, 0, 0, 0.18));
}

.hex-card__front {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hex-card__frontTitle {
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 12.5%;
  text-align: center;
  color: var(--white);
  font-weight: 800;
  font-size: clamp(0.95rem, 1.1vw, 1.25rem);
  line-height: 1.2;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* 🔒 máximo 2 líneas */
  overflow: hidden;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hex-card__back {
  transform: rotateY(180deg);
}

.hex-card__backOverlay {
  position: absolute;
  top: 24%;
  left: 15%;
  right: 15%;
  bottom: 14%;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  text-align: center;
}

.hex-card__text {
  margin: 0;
  font-size: clamp(0.95rem, 1.05vw, 1.3rem);
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
}

/* CTA más pequeño */
.hex-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;

  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: #611232;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 10px 18px rgba(97, 18, 50, 0.18);

  max-width: 70%;
}

.hex-card__link:focus-visible .hex-card__inner,
.hex-card__link:active .hex-card__inner {
  transform: rotateY(180deg);
}

.hex-card__link:focus-visible {
  outline: 3px solid rgba(97, 18, 50, 0.28);
  outline-offset: 10px;
  border-radius: 16px;
}

.home-widgets {
  /* padding: clamp(2rem, 4vw, 3.5rem) 0; */
  padding: clamp(1.2rem, 3vw, 2.2rem) 0;
}

.home-widgets__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.home-widgets__grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
  align-items: stretch;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    "viz viz"
    "ticker cloud";
}
.panel--viz {
  grid-area: viz;
}
.panel--ticker {
  grid-area: ticker;
}
.panel--cloud {
  grid-area: cloud;
}

.panel--viz .viz {
  min-height: clamp(520px, 55vh, 900px);
}

.viz__slides object {
  height: clamp(420px, 45vh, 860px);
}
.panel {
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  border: 1px solid var(--wine-soft-1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  isolation: isolate;
}
.panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.14);
  border-color: rgba(97, 18, 50, 0.26);
}
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--stps-guinda);
}
.panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -148px;
  bottom: -132px;
  background: var(--stps-guinda);
  clip-path: polygon(50% 0%, 0 55%, 100% 100%);
  pointer-events: none;
  z-index: 0;
}

.panel__head {
  padding: 1.2rem 1.4rem 0.9rem;
  border-bottom: 1px solid var(--wine-soft-1);
}

.panel__title {
  margin: 0 0 0.25rem 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--stps-guinda);
  font-family: "Noto Sans" !important;
}

.panel__desc {
  margin: 0;
  color: rgba(0, 0, 0, 0.65);
  font-size: 1.3rem;
}

.panel__footer {
  padding: 0.85rem 1.1rem 1.1rem 1.1rem;
}

.panel__body {
  padding: 1rem 1.1rem 1.1rem;
}

/* =========================
   VIZ (CUBO + POWERBI)
========================= */

.panel--viz .viz {
  min-height: clamp(361px, 45vh, 820px);

  display: grid;
  align-content: center;
}

.viz {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem 1.1rem 1.1rem;
}

/* SOLO el cubo se centra */
.viz__cube {
  display: grid;
  place-items: center;
}

.mySlides--cube {
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.5vw, 38px);
  box-sizing: border-box;
}

/* stage: solo para el cubo */
.viz__stage {
  --cube: clamp(160px, 22vw, 240px);
  --half: calc(var(--cube) / 2);

  width: var(--cube);
  display: grid;
  place-items: center;
  perspective: 900px;
}

/* spinner */
.viz__stage .spinner {
  width: var(--cube);
  height: var(--cube);
  position: relative;
  transform-style: preserve-3d;
  transform-origin: var(--half) var(--half) 0;
  animation: spincube 20s ease-in-out infinite;
}

/* caras */
.viz__stage .spinner > div {
  position: absolute;
  inset: 0;
  border: 1px solid #ccc;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  overflow: hidden;
  backface-visibility: hidden;
}

.viz__stage .spinner > div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* transforms */
.viz__stage .spinner .face1 {
  transform: translateZ(var(--half));
}
.viz__stage .spinner .face2 {
  transform: rotateY(90deg) translateZ(var(--half));
}
.viz__stage .spinner .face3 {
  transform: rotateY(90deg) rotateX(90deg) translateZ(var(--half));
}
.viz__stage .spinner .face4 {
  transform: rotateY(180deg) rotateZ(90deg) translateZ(var(--half));
}
.viz__stage .spinner .face5 {
  transform: rotateY(-90deg) rotateZ(90deg) translateZ(var(--half));
}
.viz__stage .spinner .face6 {
  transform: rotateX(-90deg) translateZ(var(--half));
}

@keyframes spincube {
  16% {
    transform: rotateY(-90deg);
  }
  33% {
    transform: rotateY(-90deg) rotateZ(90deg);
  }
  50% {
    transform: rotateY(180deg) rotateZ(90deg);
  }
  66% {
    transform: rotateY(90deg) rotateX(90deg);
  }
  83% {
    transform: rotateX(90deg);
  }
}

/* SLIDES: ocupan todo el ancho disponible */
.viz__slides {
  width: 100%;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
}

.viz__slides .mySlides {
  width: 100%;
}

/* SOLO cuando el cubo está visible */
.mySlides .spinner {
  width: var(--cube);
  height: var(--cube);
}

/* PowerBI fill real */
.viz__slides object {
  width: 100%;
  height: clamp(330px, 45vh, 820px);
  border: 0;
  display: block;
}

/* =========================
   CLOUD
========================= */

.panel--cloud .cloud {
  width: 100%;
  height: clamp(280px, 38vh, 520px);
  padding: 0;
  display: block;
}

.panel--cloud .cloud canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  border-radius: 12px;
}

.cloud__hint {
  font-size: 0.95rem;
  opacity: 0.75;
}

/* =========================
   TICKER
========================= */

.ticker {
  height: clamp(240px, 34vh, 360px);
  overflow: hidden;
  position: relative;
}

.ticker__list {
  list-style: none;
  margin: 0;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.9rem;
  will-change: transform;
  transform: translateY(0);
}

.ticker__item {
  padding-left: 0.5rem;
}

.ticker__title {
  display: inline-block;
  font-weight: 700;
  color: var(--modules-bottom);
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.ticker__title:hover {
  text-decoration: underline;
  color: var(--pantone);
}

.ticker__meta {
  margin: 0.15rem 0;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1.35;
}

.ticker__thumb {
  display: block;
  margin-top: 0.6rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.ticker__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.ticker:hover .ticker__list,
.ticker:focus-within .ticker__list {
  filter: saturate(1.05);
}

.about__text {
  margin: 0 0 0.85rem 0;
  color: rgba(0, 0, 0, 0.78);
  font-size: 1.3rem;
  text-align: justify;
  line-height: 1.55;
  margin-bottom: 62%;
}

.about__link {
  display: inline-block;
  font-weight: 800;
  color: #611232;
  text-decoration: none;
}

.about__link:hover {
  text-decoration: underline;
}

.see-more {
  position: absolute;
  bottom: -19px;
  right: 2px;
  z-index: 10;

  display: block;
}

.see-more .learn-more {
  position: relative;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: 0;

  width: clamp(9.5rem, 30vw, 12rem);
  min-width: max-content;

  height: 3rem;
  line-height: 3rem;
  font: inherit;
  margin: 0;
}

/* círculo */
.see-more .learn-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  width: 2rem;
  height: 2rem;
  background: #611232;
  border-radius: 1.625rem;
}

/* icono */
.see-more .learn-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
}

.see-more .learn-more .circle .icon.arrow {
  left: 0.2rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

.see-more .learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}

/* texto */
.see-more .learn-more .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  inset: 0;
  margin-left: -2.2rem;
  padding: 0;
  color: #000;
  font-weight: 600;
  text-align: center;
  font-size: 1.05rem;
  white-space: nowrap;
  line-height: 21px;
}

/* hover / focus */
.see-more .learn-more:hover .circle,
.see-more .learn-more:focus-visible .circle {
  width: 70%;
}

.see-more .learn-more:hover .circle .icon.arrow,
.see-more .learn-more:focus-visible .circle .icon.arrow {
  background: #fff;
  transform: translate(1rem, 0);
}

.see-more .learn-more:hover .button-text,
.see-more .learn-more:focus-visible .button-text {
  color: #fff;
}

/* focus accesible */
.see-more .learn-more:focus-visible {
  outline: 2px solid rgba(97, 18, 50, 0.35);
  outline-offset: 4px;
  border-radius: 999px;
}
.panel--ticker .ticker {
  height: clamp(260px, 40vh, 420px);
}
.panel--cloud .cloud {
  height: clamp(260px, 40vh, 420px);
}

.footer-poligonos {
  border-top: 2px solid rgba(97, 24, 44, 0.18);
  backdrop-filter: blur(3px);
}

.footer-poligonos__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 24px) 14px;
}

.footer-poligonos__grid {
  display: grid;
  gap: 18px 28px;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: start;
}

.footer-block h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(51, 18, 28, 0.9);
}
.footer-block a {
  text-decoration: none;
}

.footer-block__subtitle {
  margin-top: 14px;
}

.footer-brand {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

.footer-brand__logo {
  width: 160px;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  opacity: 0.95;
}

.footer-brand__text h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.2;
  color: rgba(51, 18, 28, 0.92);
  font-family: "Noto Sans";
}

.footer-brand__text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(51, 18, 28, 0.78);
  margin-bottom: 4px;
}

.footer-muted {
  display: inline-block;
  margin-left: 6px;
  color: rgba(51, 18, 28, 0.6);
}

.footer-list,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li,
.footer-links li {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(51, 18, 28, 0.72);
}

.footer-links a,
.footer-list a {
  color: rgba(51, 18, 28, 0.8);
  text-decoration: none;
}

.footer-links a:hover,
.footer-list a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Base Uiverse (adaptado) */
.socialBtn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
  position: relative;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
  text-decoration: none;
}

.socialBtn:active {
  transform: translateY(1px);
}

.socialBtn .svgContainer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);

  border-radius: 10px;
  border: 1px solid rgba(51, 18, 28, 0.18);

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.socialBtn .svgIcon {
  width: 18px;
  height: 18px;
  color: rgba(51, 18, 28, 0.88);
}

.socialBtn .BG {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  z-index: -1;
  pointer-events: none;
  transition: transform 0.35s ease;
  transform-origin: bottom;
  opacity: 0.95;
}

/* Hover */
.socialBtn:hover .BG {
  transform: rotate(25deg);
}

.socialBtn:hover .svgContainer {
  background-color: rgba(97, 24, 44, 0.1);
  border-color: rgba(97, 24, 44, 0.22);
}

/* Focus accesible */
.socialBtn:focus-visible {
  outline: 2px solid rgba(97, 24, 44, 0.45);
  outline-offset: 3px;
}

.socialBtn--x .BG {
  background: linear-gradient(
    45deg,
    rgba(51, 18, 28, 0.85),
    rgba(97, 24, 44, 0.85)
  );
}

.socialBtn--fb .BG {
  background: linear-gradient(45deg, #1877f2, #0b57d0);
}

.socialBtn--ig .BG {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.socialBtn--yt .BG {
  background: linear-gradient(45deg, #ff0033, #b00020);
}

.footer-poligonos__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
  margin-top: 14px;
  border-top: 1px solid rgba(97, 24, 44, 0.14);
  font-size: 12.5px;
  color: rgba(51, 18, 28, 0.7);
}

.footer-poligonos__bottom a {
  color: rgba(51, 18, 28, 0.82);
  text-decoration: none;
}

.footer-poligonos__bottom a:hover {
  text-decoration: underline;
}

.footer-dot {
  opacity: 0.5;
}
.footer-help {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(51, 18, 28, 0.72);
}

.footer-title-link {
  color: inherit;
  text-decoration: none;
}
.footer-title-link:hover {
  text-decoration: none;
  text-underline-offset: 3px;
  color: var(--modules-bottom);
}

.footer-block__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(51, 18, 28, 0.9);
}

.footer-block__title--spaced {
  margin-top: 12px;
}

.footer-block__title--spaced {
  margin-top: 14px;
}

.footer-help--calendar {
  margin-top: 6px;
  margin-bottom: 0;
}

.footer-poligonos__inner {
  padding: 22px clamp(16px, 3vw, 24px) 14px;
}

/* =========================
   PALETA (solo esta sección)
   ========================= */
.about-section {
  --stps-guinda: #611232;
  --stps-guinda-2: #9b2247;
  --stps-verde: #1e5b4f;
  --stps-verde-2: #002f2a;
  --stps-dorado: #a57f2c;
  --stps-crema: #e6d194;
  --stps-gris: #98989a;

  --text: rgba(22, 26, 29, 0.84);
  --muted: rgba(22, 26, 29, 0.72);
}

/* Layout base */
.about-section {
  padding: 0 0 clamp(18px, 3vw, 30px);
}

.about-section__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: start;
}

/* =========================
   Card principal: ¿Quiénes somos?
   ========================= */
.about-card {
  grid-column: span 12;
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(152, 152, 154, 0.32);
  box-shadow:
    0 14px 30px rgba(22, 26, 29, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.55) inset;
}

.about-card--who {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      900px 420px at 15% 0%,
      rgba(97, 18, 50, 0.06) 0%,
      rgba(97, 18, 50, 0) 65%
    ),
    radial-gradient(
      900px 420px at 85% 10%,
      rgba(30, 91, 79, 0.05) 0%,
      rgba(30, 91, 79, 0) 70%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(250, 248, 244, 1) 55%,
      rgba(255, 255, 255, 1) 100%
    );
}

/* Banda superior institucional */
.about-card--who::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--stps-guinda), var(--stps-guinda-2));
}

/* Títulos y texto */
.about-card__title {
  margin: 0 0 10px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  color: rgba(97, 18, 50, 0.92);
  letter-spacing: 0.2px;
}

.about-card__title--center {
  text-align: center;
}

.about-card__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}

.about-card__text--center {
  max-width: 110ch;
  margin: 0 auto;
  text-align: justify;
}

/* =========================
   Subtarjetas 
   ========================= */
.about-triad {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(152, 152, 154, 0.25);

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.about-mini {
  position: relative;
  border-radius: 16px;
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(22, 26, 29, 0.07);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  text-align: justify;
}

.about-mini:hover {
  transform: translateY(-2px);
  border-color: rgba(97, 18, 50, 0.22);
  box-shadow: 0 14px 28px rgba(22, 26, 29, 0.1);
}

/* Cabecera con icono */
.about-mini__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.about-mini__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(230, 209, 148, 0.18);
  border: 1px solid rgba(165, 127, 44, 0.25);
  color: var(--stps-guinda);
  flex: 0 0 auto;
}

.about-mini__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(51, 18, 28, 0.92);
}

.about-mini__text {
  margin: 0;
  font-size: 13.2px;
  line-height: 1.55;
  color: var(--muted);
}

/* Barra lateral (acento por tarjeta) */
.about-mini::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: rgba(97, 18, 50, 0.2);
}

.about-mini--mision::before {
  background: rgba(97, 18, 50, 0.35);
}
.about-mini--vision::before {
  background: rgba(30, 91, 79, 0.55);
}
.about-mini--objetivo::before {
  background: rgba(165, 127, 44, 0.55);
}

/* ===========================
   GLOSARIO
   =========================== */

/* Wrapper del glosario */
.container-glosario {
  font-family: "Noto Sans", sans-serif;
  color: var(--text);

  background: transparent;

  padding: clamp(1.2rem, 3vw, 2.2rem) var(--pad-x);
  width: 100%;
}

/* Contenedor interno */
.container-glosario__inner {
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
}

.glosario-head {
  text-align: center;
  margin-bottom: clamp(1rem, 2.2vw, 1.6rem);
}

.glosario-title {
  margin: 0;
  font-weight: 800;
  color: var(--wine);
  letter-spacing: 0.01em;
  font-size: clamp(1.55rem, 3.2vw, 2.6rem);
}

.glosario-desc {
  margin: 0.45rem auto 0;
  max-width: 78ch;
  color: rgba(0, 0, 0, 0.72);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
}
.container-glosario .alfabeto {
  max-width: var(--container);
  margin-inline: auto;
  margin-bottom: clamp(1rem, 2.2vw, 1.35rem);

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
  gap: clamp(0.35rem, 1vw, 0.7rem);

  padding: clamp(0.65rem, 1.6vw, 0.95rem);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);

  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);

  text-align: center;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  color: var(--wine);
}

.container-glosario .alfabeto a {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;

  padding: 0.35rem 0.25rem;
  border-radius: 12px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
  cursor: pointer;
}

.container-glosario .alfabeto a:hover {
  background: rgba(97, 18, 50, 0.08);
  color: var(--pantone);
  transform: translateY(-1px);
}

.flip-book {
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: clamp(0.75rem, 2vw, 1.2rem);

  padding: clamp(0.9rem, 2vw, 1.15rem);
  border-radius: 18px;
}
.button-glosary {
  position: static;
  transform: none;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}
.button-glosary--prev {
  left: clamp(0.45rem, 1.2vw, 0.9rem);
}
.button-glosary--next {
  right: clamp(0.45rem, 1.2vw, 0.9rem);
}

.button-glosary button {
  border: 1px solid rgba(97, 18, 50, 0.22);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  cursor: pointer;

  width: clamp(44px, 5vw, 56px);
  height: clamp(44px, 5vw, 56px);
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.button-glosary button:hover {
  transform: translateY(-1px);
  border-color: rgba(97, 18, 50, 0.32);
  background: rgba(255, 255, 255, 0.88);
}

.button-glosary button:active {
  transform: translateY(0);
}

.button-glosary button i {
  /* FontAwesome */
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--wine);
  transition: color 0.18s ease;
}

.button-glosary button:hover i {
  color: var(--pantone);
}

.button-glosary button:focus-visible {
  outline: 2px solid rgba(97, 18, 50, 0.35);
  outline-offset: 4px;
}

@media (max-width: 560px) {
  .button-glosary--prev {
    left: 0.35rem;
  }
  .button-glosary--next {
    right: 0.35rem;
  }
}

/* ===========================
   LIBRO (RESPONSIVO)
   =========================== */
.book {
  width: min(520px, 100%);
  max-width: 520px;

  aspect-ratio: 479 / 660;
  height: auto;

  position: relative;
  border-radius: 0 16px 16px 0;

  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.1),
    0 40px 60px rgba(0, 0, 0, 0.1);

  overflow: visible;
  justify-self: center;
}

@media (max-width: 520px) {
  .book {
    width: min(420px, 100%);
  }
}

/* ===========================
   HOJAS
   =========================== */
.paper {
  position: absolute;
  inset: 0;
  perspective: 1500px;
}

.front,
.back {
  position: absolute;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  background: var(--white);

  transform-origin: left;
  transition: transform 0.5s ease;
}

.front {
  backface-visibility: hidden;
  /* border-left: clamp(8px, 1.2vw, 12px) solid var(--wine); */
  z-index: 1;
}

.back {
  z-index: 0;
}

.front-content,
.back-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;

  padding-top: clamp(1rem, 2vw, 3.5rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);

  padding-left: clamp(1.5rem, 4vw, 4.5rem);
  padding-right: clamp(1.5rem, 4vw, 4.5rem);

  overflow: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.back-content {
  transform: rotateY(180deg);
}

/* estado flipped */
.flipped .front,
.flipped .back {
  transform: rotateY(-180deg);
}

/* portada */
.cover-img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  display: block;
  /* border-radius: 0 16px 16px 0; */
}

/* ===========================
   TIPOGRAFÍA INTERNA (H2 / P / LINKS)
   =========================== */
.front-content h2,
.back-content h2 {
  margin: 0 0 clamp(0.75rem, 1.6vw, 1rem);
  text-align: center;
  font-weight: 800;
  color: var(--wine);
  font-size: clamp(1.25rem, 2.6vw, 10rem);
  position: relative;
}

.front-content h2::after,
.back-content h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(-0.55rem, -1vw, -0.7rem);
  width: 92%;
  height: 4px;
  background: var(--gold);
  border-radius: 999px;
}

.front-content p,
.back-content p {
  padding: 0;
  margin: 0 0 clamp(0.45rem, 1.1vw, 2rem);
  text-align: justify;
  color: rgba(0, 0, 0, 0.82);
  font-size: clamp(0.95rem, 1.55vw, 1.3rem);
  line-height: 1.45;
}
.front-content b,
.back-content b {
  font-weight: 800;
  color: rgba(0, 0, 0, 0.92);
}

/* links "Ver ..." */
.front-content a,
.back-content a {
  color: var(--wine);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.front-content a:hover,
.back-content a:hover {
  color: var(--pantone);
}

.front-content [id],
.back-content [id] {
  scroll-margin-top: 18px;
}

.book.last-page {
  box-shadow: none;
}
/* Paper Z-index */
#p1 {
  z-index: 36;
}

#p2 {
  z-index: 35;
}

#p3 {
  z-index: 34;
}

#p4 {
  z-index: 33;
}
#p5 {
  z-index: 32;
}
#p6 {
  z-index: 31;
}
#p7 {
  z-index: 30;
}
#p8 {
  z-index: 29;
}
#p9 {
  z-index: 28;
}
#p10 {
  z-index: 27;
}
#p11 {
  z-index: 26;
}
#p12 {
  z-index: 25;
}
#p13 {
  z-index: 24;
}
#p14 {
  z-index: 23;
}
#p15 {
  z-index: 22;
}
#p16 {
  z-index: 21;
}
#p17 {
  z-index: 20;
}

#p18 {
  z-index: 19;
}
#p19 {
  z-index: 18;
}
#p20 {
  z-index: 17;
}
#p21 {
  z-index: 16;
}
#p22 {
  z-index: 15;
}
#p23 {
  z-index: 14;
}
#p24 {
  z-index: 13;
}
#p25 {
  z-index: 12;
}
#p26 {
  z-index: 11;
}
#p26 .back .cover-img {
  transform: rotateY(180deg);
}
.book.last-page ~ .button-glosary--next {
  display: none;
}

.dir {
  font-family:
    "Noto Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
}

.dir__header {
  margin-bottom: clamp(14px, 2.2vw, 22px);
}

.dir__title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: 0.2px;
  color: #3b0c1e;
}

.dir__subtitle {
  margin: 0;
  color: rgba(0, 0, 0, 0.68);
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.45;
}

.dir__stack {
  display: grid;
  gap: 14px;
}

/* Card nivel 1 */
.dir-card {
  background: #f9f9f9;
  border-radius: 16px;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dir-card__top {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;

  padding: 16px 16px;
  /* background: linear-gradient(180deg, rgba(97,18,50,.06), rgba(97,18,50,0)); */
  border: 0;
  cursor: pointer;
  text-align: left;
}

.dir-card__title {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.8rem);
  color: var(--wine);
  font-family: "Noto Sans";
}

.dir-card__desc {
  margin: 4px 0 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 0.92rem;
  line-height: 1.35;
}

.dir-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(97, 18, 50, 0.1);
  color: #611232;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  white-space: nowrap;
}

.dir-badge--soft {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.68);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 10px;
}

.dir-chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(97, 18, 50, 0.7);
  border-bottom: 2px solid rgba(97, 18, 50, 0.7);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 2px;
}

.dir-chev--sm {
  width: 9px;
  height: 9px;
  border-right-width: 2px;
  border-bottom-width: 2px;
  transform: rotate(45deg);
}

.dir-card__top[aria-expanded="true"] .dir-chev {
  transform: rotate(-135deg);
}

.dir-card__panel {
  padding: 12px 14px 16px;
}

/* Items (nivel 2) */
.dir-items {
  display: grid;
  gap: 10px;
}

.dir-item {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(250, 248, 244, 0.55);
  overflow: hidden;
}

.dir-item__row {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;

  padding: 12px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.dir-item__row--link {
  cursor: pointer;
}

.dir-item__text {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.dir-item__label {
  font-weight: 800;
  color: rgba(0, 0, 0, 0.82);
  line-height: 1.25;
  font-size: clamp(1.05rem, 1.35vw, 1.5rem);
}
.dir-item__meta {
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.84rem;
  line-height: 1.25;
}

.dir-item__right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dir-item__panel {
  padding: 0 12px 12px;
}

/* Subitems (nivel 3 contenedor) */
.dir-subitems {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

/* Subitem acordeón (nivel 3 expandible) */
.dir-subitem {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  overflow: hidden;
}

.dir-subitem__row {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;

  padding: 10px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.dir-subitem__panel {
  padding: 0 12px 12px;
}

/* Links finales */
.dir-links {
  list-style: none;
  padding: 10px 0 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.dir-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.8);
  background: rgba(250, 248, 244, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
  font-size: clamp(0.85rem, 1.6vw, 1.5rem);
}

.dir-link:hover {
  border-color: rgba(97, 18, 50, 0.25);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
  text-decoration: underline !important;
  font-weight: 500;
  color: var(--pantone);
}

.dir-link__arrow {
  color: rgba(97, 18, 50, 0.85);
  font-weight: 800;
}
.dir-link__arrow:hover {
  text-decoration: none !important;
}
/* Sub-link directo (nivel 3 sin acordeón) */
.dir-sublink {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;

  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.82);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.dir-sublink:hover {
  border-color: rgba(97, 18, 50, 0.25);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
  text-decoration: none;
}
/* Destacado (tablero) */
.dir-item--featured {
  text-decoration: none;
}

.dir-out {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: rgba(97, 18, 50, 0.9);
}

/* Iconos (sin SVG, solo CSS) */
.dir-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.85);
  position: relative;
}

/* Folder */
.dir-ic--folder::before {
  content: "";
  width: 18px;
  height: 12px;
  border-radius: 3px;
  background: rgba(30, 91, 79, 0.85);
  position: absolute;
}
.dir-ic--folder::after {
  content: "";
  width: 9px;
  height: 4px;
  border-radius: 2px 2px 0 0;
  background: rgba(30, 91, 79, 0.85);
  position: absolute;
  transform: translate(-4px, -7px);
}

/* Doc */
.dir-ic--doc::before {
  content: "";
  width: 14px;
  height: 18px;
  border-radius: 3px;
  background: rgba(97, 18, 50, 0.9);
  position: absolute;
}
.dir-ic--doc::after {
  content: "";
  width: 10px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  position: absolute;
  transform: translate(0, 2px);
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.9);
}

/* Chart */
.dir-ic--chart::before {
  content: "";
  width: 18px;
  height: 14px;
  border-left: 3px solid rgba(97, 18, 50, 0.9);
  border-bottom: 3px solid rgba(97, 18, 50, 0.9);
  position: absolute;
  border-radius: 2px;
}
.dir-ic--chart::after {
  content: "";
  width: 12px;
  height: 10px;
  position: absolute;
  border-left: 3px solid rgba(97, 18, 50, 0.9);
  border-bottom: 3px solid rgba(97, 18, 50, 0.9);
  transform: translate(4px, -2px) rotate(-20deg);
  border-radius: 2px;
}

.dir-item,
.dir-subitem {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.dir-item[data-accordion="lvl2"] .dir-item__row[aria-expanded="false"]:hover {
  border-color: rgba(97, 18, 50, 0.25);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.dir-item[data-accordion="lvl2"]:has(
    .dir-item__row[aria-expanded="false"]:hover
  ) {
  border-color: rgba(97, 18, 50, 0.25);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.dir-item[data-accordion="lvl2"]:has(.dir-item__row[aria-expanded="true"]) {
  box-shadow: none;
  transform: none;
  border-color: rgba(0, 0, 0, 0.06);
}

.dir-subitem[data-accordion="lvl3"]
  .dir-subitem__row[aria-expanded="false"]:hover {
  border-color: rgba(97, 18, 50, 0.25);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.dir-subitem[data-accordion="lvl3"]:has(
    .dir-subitem__row[aria-expanded="false"]:hover
  ) {
  border-color: rgba(97, 18, 50, 0.25);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.dir-subitem[data-accordion="lvl3"]:has(
    .dir-subitem__row[aria-expanded="true"]
  ) {
  box-shadow: none;
  transform: none;
  border-color: rgba(0, 0, 0, 0.06);
}

.dir-link:hover,
.dir-sublink:hover {
  border-color: rgba(97, 18, 50, 0.25);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
  text-decoration: none;
}

.dir-item__row[aria-expanded="true"],
.dir-subitem__row[aria-expanded="true"] {
  background: transparent;
}
.dir .dir-item--featured,
.dir .dir-item--featured:hover,
.dir .dir-item--featured:focus,
.dir .dir-item--featured:focus-visible {
  text-decoration: none !important;
}

.dir .dir-item--featured {
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(250, 248, 244, 0.55);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.dir .dir-item--featured:hover {
  border-color: rgba(97, 18, 50, 0.25);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.dir-text-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  transition:
    color 0.15s ease,
    text-decoration-color 0.15s ease;
}

.dir-text-link:hover {
  color: var(--pantone);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.dir-text-link:focus-visible {
  outline: 2px solid rgba(97, 18, 50, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== NIVEL 4 (subcarpetas dentro de lvl3) ===== */

.dir-subsubitems {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

/* Contenedor lvl4 */
.dir-subsubitem {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  /* “indent” visual del nivel 4 */
  margin-left: 14px;
}

/* Fila lvl4 */
.dir-subsubitem__row {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;

  padding: 10px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.dir-subsubitem__panel {
  padding: 0 12px 12px;
}

/* Rotación de chevrons cuando está abierto (lvl2, lvl3, lvl4) */
.dir-item__row[aria-expanded="true"] .dir-chev,
.dir-subitem__row[aria-expanded="true"] .dir-chev,
.dir-subsubitem__row[aria-expanded="true"] .dir-chev {
  transform: rotate(-135deg);
}

/* Hover lvl4 SOLO si está cerrado */
.dir-subsubitem[data-accordion="lvl4"]
  .dir-subsubitem__row[aria-expanded="false"]:hover {
  border-color: rgba(97, 18, 50, 0.25);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.dir-subsubitem[data-accordion="lvl4"]:has(
    .dir-subsubitem__row[aria-expanded="false"]:hover
  ) {
  border-color: rgba(97, 18, 50, 0.25);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.dir-subsubitem[data-accordion="lvl4"]:has(
    .dir-subsubitem__row[aria-expanded="true"]
  ) {
  box-shadow: none;
  transform: none;
  border-color: rgba(0, 0, 0, 0.06);
}

.dir-has-tip {
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.dir-tooltip {
  position: fixed;
  z-index: 9999;
  width: max-content;
  max-width: min(360px, calc(100vw - 24px));
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--stps-guinda-2);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.35;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  --arrow-y: 16px;
  --arrow-size: 8px;
  text-align: justify;
  word-break: break-word;
  overflow-wrap: break-word;
  font-weight: 400;
  color: var(--white);
}

.dir-tooltip.is-open {
  opacity: 1;
  transform: translateY(0);
}

.dir-tooltip::before {
  content: "";
  position: absolute;
  top: var(--arrow-y);
  left: calc(var(--arrow-size) * -1);
  width: 0;
  height: 0;
  border-top: var(--arrow-size) solid transparent;
  border-bottom: var(--arrow-size) solid transparent;
  border-right: var(--arrow-size) solid var(--stps-guinda-2);
  filter: drop-shadow(0 2px 2px rgba(184, 183, 183, 0.5));
}

/* Cuando el tooltip queda muy arriba o muy abajo */
.dir-tooltip.is-top::before {
  top: 12px;
}

.dir-tooltip.is-bottom::before {
  top: auto;
  bottom: 12px;
}

@media (max-width: 768px) {
  .dir-tooltip {
    font-size: 1rem;
    max-width: calc(100vw - 24px);
    min-width: 180px;
  }
}
/* =========================
   CARDS - estilo referencia (imagen separada + marco + shadow)
========================= */

.cards-section {
  background: transparent;
  padding: clamp(1.2rem, 3vw, 2.2rem) 0;
}

.cards-section__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.55rem);
  align-items: stretch;
}
.mcard__body {
  flex: 1;
}
.mcard .see-more {
  margin-top: auto;
}

/* Card como “cápsula” con padding interno (para separar la imagen del borde) */
.mcard {
  grid-column: span 4;
  text-decoration: none;
  color: inherit;

  border-radius: 26px;
  padding: 14px;
  overflow: hidden;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.56) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.55);

  box-shadow:
    0 26px 60px rgba(16, 24, 40, 0.12),
    0 10px 24px rgba(16, 24, 40, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.75) inset;

  transform: translateY(0);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}

/* hover del contenedor */
.mcard:hover {
  transform: translateY(-6px);
  box-shadow:
    0 34px 80px rgba(16, 24, 40, 0.16),
    0 14px 32px rgba(16, 24, 40, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.75) inset;
  text-decoration: none;
}

.mcard:focus-visible {
  outline: 3px solid rgba(97, 18, 50, 0.28);
  outline-offset: 6px;
}

/* === MARCO de la imagen (separado del borde) === */
.mcard__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(97, 18, 50, 0.1);
  box-shadow:
    0 18px 40px rgba(16, 24, 40, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
}

.mcard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      900px 420px at 20% 10%,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0) 45%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.14) 100%);
}

.mcard__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.mcard:hover .mcard__img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.02);
}

.mcard__body {
  padding: 12px 4px 2px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mcard__title {
  margin: 0;
  font-weight: 800;
  color: var(--wine);
  letter-spacing: 0.2px;
  line-height: 1.15;
  font-size: clamp(1.05rem, 1.45vw, 1.5rem);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  font-family: "Noto Sans";
}
/* BOTÓN estilo "learn-more" dentro de cada card */
.mcard .see-more {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 6px;
}

.mcard .see-more .learn-more {
  position: relative;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: 0;

  width: clamp(9.5rem, 30vw, 12rem);
  min-width: max-content;

  height: 3rem;
  line-height: 3rem;
  font: inherit;

  user-select: none;

  border-radius: 999px;
  overflow: hidden;

  isolation: isolate;
}

.mcard .see-more .learn-more .circle {
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;

  background: var(--wine, #611232);
  border-radius: 999px;

  transition: width 0.45s cubic-bezier(0.65, 0, 0.076, 1);

  z-index: 0;
}

/* icono */
.mcard .see-more .learn-more .circle .icon {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  z-index: 1;
}

.mcard .see-more .learn-more .circle .icon.arrow {
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.076, 1);
}

.mcard .see-more .learn-more .circle .icon.arrow::before {
  content: "";
  position: absolute;
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}

/* texto */
.mcard .see-more .learn-more .button-text {
  position: relative;
  z-index: 2;
  display: block;

  padding-left: 3.2rem;
  padding-right: 1.15rem;

  color: rgba(14, 18, 22, 0.92);
  font-weight: 800;
  font-size: 1.3rem;
  white-space: nowrap;
  line-height: 3rem;

  transition: color 0.45s cubic-bezier(0.65, 0, 0.076, 1);
}
.mcard .see-more .learn-more .button-text:hover {
  text-decoration: none !important;
}
/* hover / focus */
.mcard .see-more .learn-more:hover .circle,
.mcard .see-more .learn-more:focus-visible .circle {
  width: 100%;
}

.mcard .see-more .learn-more:hover .circle .icon.arrow,
.mcard .see-more .learn-more:focus-visible .circle .icon.arrow {
  transform: translateX(1rem);
}

.mcard .see-more .learn-more:hover .button-text,
.mcard .see-more .learn-more:focus-visible .button-text {
  color: #fff;
}

/* Focus accesible */
.mcard .see-more .learn-more:focus-visible {
  outline: 2px solid rgba(97, 18, 50, 0.35);
  outline-offset: 4px;
}

/* =========================
   PERFILES (sección)
========================= */
.profiles {
  background: transparent;
  padding: clamp(1.2rem, 3vw, 2.2rem) 0;
}

.profiles__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.profiles__head {
  text-align: center;
  margin-bottom: clamp(1rem, 2.4vw, 1.6rem);
}

.profiles__title {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--wine);
  letter-spacing: 0.2px;
}

.profiles__desc {
  margin: 0.5rem auto 0;
  max-width: 80ch;
  color: rgba(0, 0, 0, 0.72);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

/* =========================
   Grid / Cards
========================= */
.profiles__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.4rem);
  align-items: stretch;
}

.profiles-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(97, 18, 50, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.profiles-card__kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(97, 18, 50, 0.1);
}

.profiles-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: rgba(97, 18, 50, 0.92);
  letter-spacing: 0.2px;
  font-size: 2rem;
}

.profiles-kicker__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wine), var(--wine-2));
  box-shadow: 0 6px 14px rgba(97, 18, 50, 0.18);
}

.profiles-kicker__hint {
  color: var(--text);
  font-size: 1.3rem;
}


.enoe .viz-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.enoe .viz-card__eyebrow {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: rgba(97, 18, 50, 0.92);
}

/* =========================
   Mapa
========================= */
.profiles-card--map {
  overflow: hidden;
}

.profiles-map {
  padding: 1%;
  position: relative;
}

.profiles-map__svg {
  width: 100%;
  height: clamp(360px, 52vh, 560px);
  display: block;
}

.mx-shape {
  fill: rgba(30, 91, 79, 0.9);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 2;
}
.mx-lines {
  fill: none;
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.mx-state {
  fill: var(--map-base, #611232);
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.2;
  cursor: pointer;
  transition:
    transform 0.14s ease,
    filter 0.14s ease,
    opacity 0.14s ease,
    fill 0.14s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.mx-state:hover,
.mx-state.is-hover {
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.18));
  transform: translateY(-2px) scale(1.01);
}
.mx-state.is-selected {
  fill: var(--map-selected, #3a0f1f);
  filter: drop-shadow(0 7px 3px rgba(0, 0, 0, 0.35));
  transform: translateY(-3px) scale(1.015);
  opacity: 1;
}
.mx-group .mx-state:not(.is-selected) {
  opacity: 0.94;
}

.profiles-map__hint {
  font-size: 0.92rem;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 10px;
}

/* =========================
   Tira de estados
========================= */
.state-strip {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: auto;
  padding: 6px 6px 8px;
  border-radius: 14px;
  border: 1px solid rgba(97, 18, 50, 0.12);
  background: rgba(255, 255, 255, 0.55);
  scrollbar-width: thin;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.state-chip {
  flex: 0 0 auto;
  width: 36px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
  position: relative;
}

.chip-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -110%);
  background: var(--gold);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  padding: 7px 9px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease,
    visibility 0.12s ease;
}

.chip-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--gold);
}

.chip-tooltip.is-show {
  opacity: 1;
  visibility: visible;
}
.state-chip svg {
  width: 28px;
  height: 22px;
}
.state-chip svg path {
  fill: rgba(97, 18, 50, 0.75);
}
.state-chip__txt {
  font-weight: 800;
  font-size: 0.72rem;
  color: rgba(97, 18, 50, 0.9);
}
.state-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
}
.state-chip.is-active {
  border-color: rgba(179, 142, 93, 0.55);
  box-shadow: 0 10px 20px rgba(179, 142, 93, 0.18);
}
.state-chip.is-active svg path {
  fill: rgba(179, 142, 93, 0.95);
}

.profiles-map__stripBlock {
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(97, 18, 50, 0.12);
  background: rgba(255, 255, 255, 0.55);
}
.profiles-map__stripHead {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
}
.profiles-map__stripHelp {
  color: var(--text);
  font-size: 1.3rem;
}

/* =========================
   Aside (preview)
========================= */
.profiles-card--aside {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.profiles-aside__top {
  padding: 14px 16px 12px;
  background: linear-gradient(
    180deg,
    rgba(97, 18, 50, 0.1),
    rgba(97, 18, 50, 0)
  );
}

.profiles-aside__body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}

.profiles-preview {
  position: relative;
  overflow: hidden;
  height: clamp(460px, 58vh, 660px);

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imagen en preview */
.profiles-preview__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
}

/* Meta debajo del preview */
.profiles-preview__meta {
  margin: 0;
  color: rgba(0, 0, 0, 0.7);
  font-size: 1.05rem;
}

/* Wrapper del PDF preview (scroll interno) */
.profiles-preview__pdfWrap {
  width: 100%;
  height: 100%;
  overflow: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;

  background: transparent;
  scrollbar-width: thin;
}

/* Canvas(s) del preview */
#profiles-preview-canvas,
#profiles-preview-canvas-2 {
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

/* Si solo hay 1 canvas visible, centra vertical */
.profiles-preview__pdfWrap:has(#profiles-preview-canvas-2[hidden]) {
  justify-content: center;
}

/* Botón zoom */
.preview-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;

  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
}

/* =========================
   Barra de controles (arriba)
========================= */
.profiles-controlsbar {
  margin-bottom: clamp(1rem, 2.2vw, 1.4rem);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(97, 18, 50, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  padding: 14px 16px;
}

.profiles-controlsbar__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

@media (max-width: 840px) {
  .profiles__grid {
    grid-template-columns: 1fr;
  }
  .profiles-controlsbar__grid {
    grid-template-columns: 1fr;
  }
}

.profiles-block {
  display: grid;
  gap: 8px;
}
.profiles-block__head {
  display: grid;
  gap: 4px;
}
.profiles-block__title {
  font-weight: 800;
  color: rgba(97, 18, 50, 0.92);
  letter-spacing: 0.2px;
}
.profiles-block__help {
  color: var(--text);
  font-size: 1.2rem;
}

/* Select (con chevron) */
.profiles-select {
  position: relative;
  display: grid;
  align-items: center;
}
.profiles-select select {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(97, 18, 50, 0.18);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 4px 42px 7px 11px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.82);
  outline: none;
  font-size: 1.6rem;
}
.profiles-select i {
  position: absolute;
  right: 14px;
  pointer-events: none;
  color: rgba(97, 18, 50, 0.72);
}

/* =========================
   PDF detallado (abajo)
========================= */
.profiles-pdf {
  margin-top: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
  padding: clamp(14px, 2.4vw, 20px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(97, 18, 50, 0.1);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.profiles-pdf__badge {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.profiles-pdf__meta {
  color: var(--text);
  font-size: 1.2rem;
}

.profiles-pdf__actions {
  display: flex;
  justify-content: center;
  margin: 12px 0 14px;
}
/* Botón Descargar con el mismo look/efecto que .srch-reset */
.profiles-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 2px solid rgba(97, 18, 50, 0.55);
  background: transparent;
  font-weight: 800;
  color: var(--wine);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  z-index: 0;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
  font-size: 1.5rem;
}

/* Capa animada */
.profiles-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wine);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.076, 1);
  z-index: -1;
}

/* Hover */
.profiles-btn:hover::before {
  transform: translateX(0);
}
.profiles-btn:hover {
  color: #fff;
  border-color: var(--wine);
  text-decoration: none;
}

/* Focus accesible */
.profiles-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(97, 18, 50, 0.25);
}

/* Para que el icono también cambie a blanco en hover */
.profiles-btn i {
  position: relative;
  z-index: 1;
}

.profiles-pdf__viewer {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
}

#profiles-pdf-iframe {
  width: 100%;
  height: min(78vh, 920px);
  border: 0;
}

/* =========================
   DIALOG (modal preview)
========================= */
.preview-dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  margin: auto; /* centrado real */
}

/* Tamaño cuando es PDF  */
.preview-dialog.is-pdf {
  width: min(1055px, 90vw);
  height: min(86vh, 900px);
}

/* Tamaño cuando es IMAGEN (Llaves) */
.preview-dialog.is-image {
  width: min(900px, 92vw);
  height: auto;
  max-height: 86vh;
}

.preview-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.preview-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(22, 26, 29, 0.78);
  color: #fff;
  cursor: pointer;
}

.preview-dialog__content {
  width: 100%;
  height: 100%;
  padding: 18px;
  background: #f7f5f2;
  display: grid;
  place-items: center;
  gap: 12px;
}

#preview-dialog-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(86vh - 36px);
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

/* PDF wrap: por defecto sin scroll */
#preview-dialog-pdf {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
}

#preview-dialog-pdf.is-two {
  overflow: auto;
}

#preview-dialog-c1,
#preview-dialog-c2 {
  width: auto;
  height: 100%;
  max-height: calc(100% - 0px);
  max-width: min(980px, 100%);
  display: block;
  border-radius: 12px;
}

/* =========================
   Bloqueo de scroll del body
========================= */
html.no-scroll,
html.no-scroll body {
  overflow: hidden;
}

.mx-tooltip {
  position: absolute;
  left: 0;
  top: 0;

  padding: 8px 10px;
  border-radius: 6px;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: "Noto Sans";

  pointer-events: none;
  max-width: 240px;

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.12s ease,
    visibility 0.12s ease;
  z-index: 20;
}

.mx-tooltip.is-show {
  opacity: 1;
  visibility: visible;
}

/* =========================
   PERFILES
========================= */
.profiles {
  background: transparent;
  padding: clamp(1.2rem, 3vw, 2.2rem) 0;
}

.profiles__inner {
  max-width: var(--container, 1600px);
  margin-inline: auto;
  padding-inline: var(--pad-x, 16px);
}

/* =========================
   Grid / Cards
========================= */
.profiles__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.4rem);
  align-items: stretch;
}

.profiles-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(97, 18, 50, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.profiles-card__kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(97, 18, 50, 0.1);
}

.profiles-kicker__hint {
  color: var(--text, rgba(0, 0, 0, 0.75));
  font-size: 1.3rem;
}

/* =========================
   Mapa
========================= */
.profiles-card--map {
  overflow: hidden;
}

.profiles-map {
  padding: 1%;
  position: relative;
}

.profiles-map__svg {
  width: 100%;
  height: clamp(360px, 52vh, 560px);
  display: block;
}

/* Estados */
.mx-state {
  fill: #611232;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.2;
  cursor: pointer;
  transition:
    transform 0.14s ease,
    filter 0.14s ease,
    opacity 0.14s ease,
    fill 0.14s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.mx-state:hover,
.mx-state.is-hover {
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.18));
  transform: translateY(-2px) scale(1.01);
}

.mx-state.is-selected {
  filter: drop-shadow(0 7px 13px rgba(0, 0, 0, 0.25));
  transform: translateY(-3px) scale(1.015);
  opacity: 1;
}

.mx-group .mx-state:not(.is-selected) {
  opacity: 0.96;
}

/* Tooltip mapa */
.mx-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--gold, #b38e5d);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  font-family: "Noto Sans", system-ui, sans-serif;
  pointer-events: none;
  max-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.12s ease,
    visibility 0.12s ease;
  z-index: 30;
}

.mx-tooltip.is-show {
  opacity: 1;
  visibility: visible;
}

/* =========================
   Leyenda Heatmap
========================= */
.heat-legend {
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(97, 18, 50, 0.12);
  background: rgba(255, 255, 255, 0.55);
}

.heat-legend__inner {
  display: grid;
  gap: 8px;
}

.heat-legend__title {
  font-weight: 800;
  color: rgba(97, 18, 50, 0.92);
  letter-spacing: 0.2px;
  font-size: 1.15rem;
}

.heat-legend__bar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.heat-legend__swatch {
  display: block;
  height: 100%;
}

.heat-legend__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.72);
  font-weight: 700;
}

.heat-legend__empty {
  font-weight: 800;
  color: rgba(0, 0, 0, 0.72);
  font-size: 1.05rem;
}

/* =========================
   Tira de estados
========================= */
.state-strip {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 6px 8px;
  border-radius: 14px;
  border: 1px solid rgba(97, 18, 50, 0.12);
  background: rgba(255, 255, 255, 0.55);
  scrollbar-width: thin;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.state-chip {
  flex: 0 0 auto;
  width: 36px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
  position: relative;
}

.state-chip svg {
  width: 28px;
  height: 22px;
}
.state-chip svg path {
  fill: rgba(97, 18, 50, 0.75);
}

.state-chip__txt {
  font-weight: 800;
  font-size: 0.72rem;
  color: rgba(97, 18, 50, 0.9);
}

.state-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
}

.state-chip.is-active {
  border-color: rgba(179, 142, 93, 0.55);
  box-shadow: 0 10px 20px rgba(179, 142, 93, 0.18);
}
.state-chip.is-active svg path {
  fill: rgba(179, 142, 93, 0.95);
}

/* Tooltip chips */
.chip-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -110%);
  background: var(--gold, #b38e5d);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  padding: 7px 9px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease,
    visibility 0.12s ease;
}
.chip-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--gold, #b38e5d);
}
.chip-tooltip.is-show {
  opacity: 1;
  visibility: visible;
}

/* Strip dentro del mapa */
.profiles-map__stripBlock {
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(97, 18, 50, 0.12);
  background: rgba(255, 255, 255, 0.55);
}
.profiles-map__stripHead {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
}
.profiles-map__stripHelp {
  color: var(--text, rgba(0, 0, 0, 0.75));
  font-size: 1.3rem;
}

/* =========================
   Aside (preview)
========================= */
.profiles-card--aside {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.profiles-aside__body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}

.profiles-preview {
  position: relative;
  overflow: hidden;
  height: clamp(460px, 58vh, 660px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profiles-preview__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
}

.profiles-preview__meta {
  margin: 0;
  color: rgba(0, 0, 0, 0.7);
  font-size: 1.05rem;
}

.profiles-preview__pdfWrap {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  background: transparent;
  scrollbar-width: thin;
}

#profiles-preview-canvas,
#profiles-preview-canvas-2 {
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

.preview-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
}

/* =========================
   Barra de controles
========================= */
.profiles-controlsbar {
  margin-bottom: clamp(1rem, 2.2vw, 1.4rem);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(97, 18, 50, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  padding: 14px 16px;
}

.profiles-controlsbar__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: start;
}

@media (max-width: 980px) {
  .profiles__grid {
    grid-template-columns: 1fr;
  }
  .profiles-controlsbar__grid {
    grid-template-columns: 1fr;
  }
}

.profiles-block {
  display: grid;
  gap: 8px;
}
.profiles-block__head {
  display: grid;
  gap: 4px;
}
.profiles-block__title {
  font-weight: 800;
  color: rgba(97, 18, 50, 0.92);
  letter-spacing: 0.2px;
}
.profiles-block__help {
  color: var(--text, rgba(0, 0, 0, 0.75));
  font-size: 1.2rem;
}

.profiles-select {
  position: relative;
  display: grid;
  align-items: center;
}
.profiles-select select {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(97, 18, 50, 0.18);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 4px 42px 7px 11px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.82);
  outline: none;
  font-size: 1.6rem;
}
.profiles-select i {
  position: absolute;
  right: 14px;
  pointer-events: none;
  color: rgba(97, 18, 50, 0.72);
}

/* =========================
   PDF detallado
========================= */
.profiles-pdf {
  margin-top: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
  padding: clamp(14px, 2.4vw, 20px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(97, 18, 50, 0.1);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.profiles-pdf__meta {
  color: var(--text, rgba(0, 0, 0, 0.75));
  font-size: 1.2rem;
}

.profiles-pdf__actions {
  display: flex;
  justify-content: center;
  margin: 12px 0 14px;
}

.profiles-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 2px solid rgba(97, 18, 50, 0.55);
  background: transparent;
  font-weight: 800;
  color: #611232;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  z-index: 0;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
  font-size: 1.5rem;
}
.profiles-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #611232;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.076, 1);
  z-index: -1;
}
.profiles-btn:hover::before {
  transform: translateX(0);
}
.profiles-btn:hover {
  color: #fff;
  border-color: #611232;
  text-decoration: none;
}
.profiles-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(97, 18, 50, 0.25);
}

.profiles-pdf__viewer {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
}

#profiles-pdf-iframe {
  width: 100%;
  height: min(78vh, 920px);
  border: 0;
}

/* =========================
   DIALOG
========================= */
.preview-dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  margin: auto;
}
.preview-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.preview-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(22, 26, 29, 0.78);
  color: #fff;
  cursor: pointer;
}

.preview-dialog__content {
  width: 100%;
  height: 100%;
  padding: 18px;
  background: #f7f5f2;
  display: grid;
  place-items: center;
  gap: 12px;
}

#preview-dialog-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(86vh - 36px);
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

#preview-dialog-pdf {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
}

#preview-dialog-c1,
#preview-dialog-c2 {
  width: auto;
  height: 100%;
  max-height: 100%;
  max-width: min(980px, 100%);
  display: block;
  border-radius: 12px;
}

/* Bloqueo scroll */
html.no-scroll,
html.no-scroll body {
  overflow: hidden;
}

/* =========================
   ACORDEÓN (details/summary)
========================= */
.eco {
  font-family: "Noto Sans", sans-serif;
  padding: clamp(1.2rem, 3vw, 2.2rem) 0;
}

.eco__inner {
  max-width: var(--container, 1600px);
  margin-inline: auto;
  padding-inline: var(--pad-x, 1.25rem);
}

.eco__stack {
  display: grid;
  gap: 14px;
}
.eco-acc {
  border-radius: 18px;
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(97, 18, 50, 0.16);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.eco-acc__sum {
  list-style: none;
  cursor: pointer;
  user-select: none;

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;

  padding: 16px 16px;
  border: 0;
  background: #e9e9ed;
}

.eco-acc__sum::-webkit-details-marker {
  display: none;
}

.eco-acc__left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.eco-acc__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--stps-verde-2);
  color: #fff;
  flex: 0 0 auto;
}

.eco-acc__icon i {
  font-size: 1.1rem;
}

.eco-acc__txt {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.eco-acc__name {
  font-weight: 700;
  color: var(--stps-guinda);
  font-size: clamp(1.05rem, 1.6vw, 1.6rem);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eco-acc__sub {
  color: rgba(0, 0, 0, 0.62);
  font-size: 0.92rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eco-acc__right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eco-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  white-space: nowrap;
}

.eco-pill--soft {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.68);
}

.eco-acc__chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(97, 18, 50, 0.7);
  border-bottom: 2px solid rgba(97, 18, 50, 0.7);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 2px;
}

/* gira cuando abre */
.eco-acc[open] .eco-acc__chev {
  transform: rotate(-135deg);
}

.eco-acc__panel {
  padding: 14px 14px 16px;
  border-top: 1px solid rgba(97, 18, 50, 0.1);
}

/* =========================
   CAJA GRANDE (eco-note)
========================= */
.eco-note {
  padding: 0px 5px;
  margin-bottom: 20px;
}

.eco-note__title {
  margin: 0 0 8px;
  font-weight: 800;
  color: rgba(97, 18, 50, 0.92);
  font-size: 1.05rem;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.eco-note__p {
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.55;
  font-size: 1.4rem;
  text-align: justify;
}
.eco-note__p:last-child {
  margin-bottom: 0;
}

/* =========================
   GRID de tarjetas
========================= */
.eco-cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

/* =========================
   TARJETA (eco-card)
   ✅ CLAVE: ponemos header + chips en la misma fila (sin tocar HTML)
========================= */
.eco-card {
  position: relative;
  grid-column: span 6;
  border-radius: 8px;
  border: 1px solid rgba(97, 18, 50, 0.12);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  padding: 12px 2px;

  /* layout interno para alinear chips al lado del título */
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "head links"
    "desc desc"
    "tree tree";
  align-items: center;
}
.eco-card::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 9px;
  bottom: 12px;
  width: 5px;
  border-radius: 10px;
  background: var(--stps-verde-2);
  opacity: 1;
  height: 54px;
}
.eco-card__head {
  grid-area: head;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
}

.eco-card__title {
  margin: 0;
  font-weight: 700;
  color: var(--stps-guinda);
  font-size: 1.3rem;
  line-height: 1.2;

  /* si es largo */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.eco-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(230, 209, 148, 0.22);
  border: 1px solid rgba(165, 127, 44, 0.28);
  color: rgba(97, 18, 50, 0.92);

  font-weight: 800;
  font-size: 0.78rem;
  white-space: nowrap;
}

.eco-card__desc {
  grid-area: desc;
  margin: 0;
  color: var(--text);
  line-height: 1.45;
  font-size: 1.3rem;
  padding: 2%;
  text-align: justify;
}

/* ✅ LINKS (chips) a la derecha del título */
.eco-card__links {
  grid-area: links;
  justify-self: end;

  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px;
}

/* Si el “links” contiene un árbol (eco-tree), entonces debe bajar y ocupar todo el ancho */
.eco-card__links:has(.eco-tree) {
  grid-area: tree;
  justify-self: stretch;
  display: block;
  margin-top: 6px;
}

/* =========================
   CHIP (eco-chip) estilo “pill” como tu captura
========================= */
.eco-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--stps-verde);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.eco-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(97, 18, 50, 0.3);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
  color: var(--white);
  background-color: var(--stps-guinda);
}

.eco-chip:focus-visible {
  outline: 2px solid rgba(97, 18, 50, 0.35);
  outline-offset: 3px;
}

.eco-chip {
  gap: 8px;
}

/* iconos por tipo (usando pseudo-elementos) */
.eco-chip::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 800;
  content: "\f15c"; /* file */
  opacity: 0.8;
}

/* Original/Originales */
.eco-chip[href*="Original"],
.eco-chip:has(:not(*)) {
}
.eco-chip:where(:is(:link, :visited))[href*="Original"]::before,
.eco-chip:where(:is(:link, :visited))[href*="original"]::before {
  content: "\f15b";
}

.eco-chip:where(:is(:link, :visited))[href*="Desest"]::before,
.eco-chip:where(:is(:link, :visited))[href*="desest"]::before {
  content: "\f201";
}

.eco-chip:where(:is(:link, :visited))[href*="ACT"]::before,
.eco-chip:where(:is(:link, :visited))[href*="actividad"]::before {
  content: "\f0b1";
}

/* =========================
   “ÁRBOL”
========================= */
.eco-tree {
  border-radius: 14px;
}

.eco-group__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.eco-group__title {
  margin: 0;
  font-weight: 800;
  color: var(--stps-guinda);
  font-size: 1.3rem;
  line-height: 1.25;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eco-group__links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.eco-sub {
  margin-top: 10px;
  padding-left: 4px;
  display: grid;
  gap: 10px;
}

.eco-sub__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.eco-sub__title {
  margin: 0;
  font-weight: 800;
  color: var(--text);
  font-size: 1.2rem;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eco-sub__links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* =========================
   Hovers suaves
========================= */
@media (hover: hover) {
  .eco-card {
    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease,
      border-color 0.18s ease;
  }
  .eco-card:hover {
    transform: translateY(-2px);
    border-color: rgba(97, 18, 50, 0.18);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.1);
  }
}

/* =========================
   Responsive
========================= */
@media (max-width: 980px) {
  .eco-card {
    grid-column: span 12;
  }
}

@media (max-width: 560px) {
  .eco-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "links"
      "desc"
      "tree";
    align-items: start;
  }

  .eco-card__links {
    justify-self: start;
  }

  .eco-group__head,
  .eco-sub__row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .eco-group__links,
  .eco-sub__links {
    justify-content: flex-start;
  }

  .eco-acc__sum {
    grid-template-columns: 1fr auto;
  }

  .eco-acc__name {
    white-space: normal;
  }
  .eco-acc__sub {
    display: none;
  }
}

.eco-acc {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(97, 18, 50, 0.16);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
}

.eco-acc__sum {
  background: #e9e9ed; /* ok */
  border-bottom: 1px solid rgba(22, 26, 29, 0.06);
}

.eco-acc__panel {
  background: linear-gradient(
    180deg,
    rgba(233, 233, 237, 0.35) 0%,
    rgba(255, 255, 255, 0) 55%
  );
}

/* =========================================================
   GRID de tarjetas: casos especiales
========================================================= */

/* 4) Si hay SOLO 1 tarjeta en ese eco-cards => ocupar todo el ancho */
.eco-cards > .eco-card:only-child {
  grid-column: 1 / -1;
}

/* (opcional) si hay 3 tarjetas, la última sola también puede abrirse */
@media (min-width: 981px) {
  .eco-cards > .eco-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   TARJETAS: mejora visual + corrige alineaciones
========================================================= */

.eco-card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 26, 29, 0.1);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  padding: 12px 12px;
  align-items: center;
}

/* Barra lateral */
.eco-card::before {
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 5px;
  height: auto;
  border-radius: 999px;
  background: rgba(30, 91, 79, 0.95);
  opacity: 0.95;
}

.eco-card__head {
  padding-left: 18px;
}

.eco-card:not(:has(.eco-card__head)) {
  display: block;
  padding: 14px 14px 14px 18px;
}
.eco-card:not(:has(.eco-card__head))::before {
  left: 10px;
}

.eco-card__links {
  padding: 8px 10px;
}

.eco-card__links:has(.eco-tree) {
  padding: 0;
  margin-top: 10px;
}

/* =========================================================
   CHIPS
========================================================= */

.eco-chip {
  background: rgba(30, 91, 79, 0.95);
  border: 1px solid rgba(0, 47, 42, 0.25);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
}

.eco-chip:hover {
  background: rgba(97, 18, 50, 0.95);
  border-color: rgba(97, 18, 50, 0.35);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.12);
}

.eco-chip::before {
  opacity: 0.75;
}

/* =========================================================
   ARBOL
========================================================= */

/* HEAD del grupo */
.eco-group__head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title links"
    "desc  desc";
  gap: 10px 12px;
  align-items: start;
}

.eco-group__title {
  grid-area: title;
}
.eco-group__links {
  grid-area: links;
}

.eco-group__head .eco-card__desc {
  grid-area: desc;
  margin: 2px 0 0;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1.45;
  max-width: 75ch;
}

.eco-sub__row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title links"
    "desc  desc";
  gap: 8px 12px;
  align-items: start;
  padding: 0;
}

.eco-sub__title {
  grid-area: title;
}
.eco-sub__links {
  grid-area: links;
}
@media (max-width: 980px) {
  .profiles-toprow {
    grid-template-columns: 1fr;
  }
  .profiles-controls {
    margin-top: 8px;
  }
}
/* =========================
   SEARCH (módulo)
========================= */
.srch.container {
  max-width: var(--container, 1600px);
  margin-inline: auto;
  padding: clamp(16px, 3vw, 28px) var(--pad-x, 1.25rem);
}

.srch-top {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.srch-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;

  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(97, 18, 50, 0.18);
  border-radius: 13px;
  padding: 10px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

.srch-input {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--wine);
}

.srch-input i {
  color: var(--wine);
  font-size: 1.1rem;
}

#srchQuery {
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1.5rem;
  color: rgba(0, 0, 0, 0.85);
  font-weight: 600;
}

.srch-clear {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.55);
  padding: 6px 8px;
  border-radius: 12px;
}
.srch-clear:hover {
  background: rgba(97, 18, 50, 0.08);
  color: var(--wine);
}

.srch-btn {
  border: 0;
  cursor: pointer;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
  font-size: 1.5rem;
}
.srch-btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}
.srch-btn:active {
  transform: translateY(0);
}

.srch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5rem;
}

.srch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  position: relative;
}

.srch-chip {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.75);
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.srch-chip--query {
  background: rgba(97, 18, 50, 0.1);
  border-color: rgba(97, 18, 50, 0.18);
  color: var(--wine);
}

.srch-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 13px;
  background: rgba(230, 209, 148, 0.22);
  border: 1px solid rgba(165, 127, 44, 0.28);
  color: rgba(97, 18, 50, 0.92);
  font-weight: 800;
  white-space: nowrap;
}

.srch-scope {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: none;
  z-index: 20;
}
.srch-scope.is-open {
  display: grid;
}
.srch-scope button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.78);
}
.srch-scope button:hover {
  background: rgba(97, 18, 50, 0.08);
  color: var(--wine);
}

.srch-sort {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.srch-sort__label {
  font-weight: 800;
  color: rgba(0, 0, 0, 0.7);
}
#srchSort {
  appearance: none;
  border: 1px solid rgba(97, 18, 50, 0.18);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.82);
  outline: none;
}

.srch-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}

.srch-filters__card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.srch-filters__head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(97, 18, 50, 0.1);
  background: rgba(97, 18, 50, 0.06);
}
.srch-filters__head i {
  color: var(--wine);
}
.srch-filters__title {
  margin: 0;
  font-size: 1.8rem;
  color: var(--text);
  font-family: "Noto Sans";
  font-weight: 800;
}

.srch-filter {
  padding: 14px 16px 6px;
}
.srch-filter__label {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.55);
  font-weight: 800;
  font-family: "Noto Sans";
}

.srch-checks {
  display: grid;
  gap: 8px;
}
.srch-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.srch-check:hover {
  border-color: rgba(97, 18, 50, 0.18);
}
.srch-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--wine);
}
.srch-check span {
  font-weight: 800;
  color: rgba(0, 0, 0, 0.78);
  font-size: 1.5rem;
}

.srch-reset {
  position: relative;
  width: calc(100% - 180px);
  margin: 10px 82px 16px;
  padding: 9px 10px;

  border-radius: 14px;
  border: 2px solid rgba(97, 18, 50, 0.55);
  background: transparent;

  font-weight: 800;
  color: var(--wine);
  cursor: pointer;
  overflow: hidden;
  z-index: 0;

  transition:
    color 0.3s ease,
    border-color 0.3s ease;
  font-size: 1.5rem;
}

/* Capa animada */
.srch-reset::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wine);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.076, 1);
  z-index: -1;
}

/* Hover */
.srch-reset:hover::before {
  transform: translateX(0);
}

.srch-reset:hover {
  color: #fff;
  border-color: var(--wine);
}

/* Focus accesible */
.srch-reset:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(97, 18, 50, 0.25);
}

/* Resultados */
.srch-results {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.srch-results__head {
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(97, 18, 50, 0.1);
  background: rgba(255, 255, 255, 0.75);
}
.srch-results__title {
  margin: 0;
  font-weight: 800;
  color: var(--wine);
  font-size: 1.8rem;
  font-family: "Noto Sans";
}
.srch-results__hint {
  margin: 6px 0 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 1.3rem;
}

.srch-list {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}

.srch-item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 8px;
}

.srch-item__crumbs {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 300;
}

.srch-item__title {
  margin: 0;
  color: var(--wine) !important;
  font-weight: 800;
  font-size: 1.7rem;
  text-decoration: none;
}
.srch-item__title:hover {
  text-decoration: underline;
  color: var(--pantone) !important;
}

.srch-item__desc {
  margin: 0;
  color: rgba(0, 0, 0, 0.72);
  line-height: 1.45;
  font-size: 1.2rem;
}

.srch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.srch-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.68);
}
.srch-tag--pdf {
  background: rgba(97, 18, 50, 0.1);
  color: var(--wine);
}
.srch-tag--xls {
  background: rgba(30, 91, 79, 0.12);
  color: rgba(0, 47, 42, 0.95);
}
.srch-tag--csv {
  background: rgba(165, 127, 44, 0.18);
  color: rgba(97, 18, 50, 0.92);
}
.srch-tag--page {
  background: rgba(0, 0, 0, 0.06);
}

/* Empty */
.srch-empty {
  padding: 34px 16px 28px;
  text-align: center;
}
.srch-empty__icon {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  margin: 0 auto 14px;
  background: rgba(97, 18, 50, 0.08);
  display: grid;
  place-items: center;
  color: var(--wine);
  font-size: 1.8rem;
}
.srch-empty__title {
  margin: 0;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.84);
  font-family: "Noto Sans";
  font-size: 3.5rem;
}
.srch-empty__desc {
  margin: 8px auto 0;
  max-width: 70ch;
  color: rgba(0, 0, 0, 0.62);
}

.srch-recos {
  margin-top: 18px;
}
.srch-recos__label {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.4rem;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 10px;
}
.srch-recos__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.srch-reco {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.78);
  cursor: pointer;
  font-size: 1.2rem;
}
.srch-reco:hover {
  background: rgba(97, 18, 50, 0.08);
  color: var(--wine);
  border-color: rgba(97, 18, 50, 0.18);
}

/* Loading skeleton */
.srch-loading {
  padding: 16px;
  display: grid;
  gap: 12px;
}
.srch-skel {
  height: 92px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.03),
    rgba(0, 0, 0, 0.05)
  );
  background-size: 240% 100%;
  animation: sk 1.1s ease-in-out infinite;
}

[hidden] {
  display: none !important;
}

.srch-loading:not([hidden]) {
  display: grid;
}

.srch-results a {
  color: inherit;
}

.srch-open {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 14px;
  border-radius: 10px;

  font-size: 0.95rem;
  font-weight: 600;

  text-decoration: none;
  cursor: pointer;

  color: rgba(0, 0, 0, 0.55);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.18);

  overflow: hidden;
  z-index: 0;

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    font-weight 0.25s ease;
}

/* capa que "entra" (wipe) */
.srch-open::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(97, 18, 50, 0.08);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  z-index: -1;
}

/* hover/focus: entra el wipe */
.srch-open:hover::before,
.srch-open:focus-visible::before {
  transform: translateX(0);
}

.srch-open:hover,
.srch-open:focus-visible {
  color: var(--wine);
  font-weight: 800;
  border-color: rgba(97, 18, 50, 0.45);
  text-decoration: none;
}

/* accesibilidad */
.srch-open:focus-visible {
  outline: 2px solid rgba(97, 18, 50, 0.3);
  outline-offset: 3px;
}

/* Paginación bonita tipo “bolitas” */
.srch-pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(97, 18, 50, 0.1);
  background: rgba(255, 255, 255, 0.75);
}

.srch-pagebtn {
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  color: var(--wine);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.srch-pagebtn:not(:disabled):hover {
  background: rgba(97, 18, 50, 0.08);
}
.srch-pagebtn:disabled:hover {
  background: #fff;
  color: rgba(0, 0, 0, 0.35);
}

.srch-pagebtn.is-active {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
  pointer-events: none;
  cursor: default;
}

.srch-pagebtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.35);
  background: #fff;
}

.srch-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(0, 0, 0, 0.55);
}

/* Fila inferior: chips izquierda, botón derecha */
.srch-item__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.srch-item__footer .srch-tags {
  flex: 1;
  min-width: 0;
}

/* contenedor del botón: lo empuja a la derecha */
.srch-openwrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}
/* =========================================================
   THEMES (Tarjetas de módulos)
========================================================= */

.themes {
  padding: clamp(1.4rem, 3vw, 2.4rem) 0;
}

.themes__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.themes__grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.55rem);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center;
}

/* Tarjeta “placa” */
.theme-card {
  text-decoration: none;
  color: inherit;

  position: relative;
  border-radius: 20px;

  min-height: 170px;
  padding: 18px 18px 16px;

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7))
      padding-box,
    linear-gradient(180deg, rgba(12, 35, 30, 0.65), rgba(12, 35, 30, 0.35))
      border-box;
  border: 2px solid transparent;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  overflow: hidden;

  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
}

.theme-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 9px;
  background: linear-gradient(90deg, var(--wine), var(--gold));
  opacity: 0.85;
}

.theme-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -70px;
  top: -90px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(97, 18, 50, 0.18),
    transparent 55%
  );
  pointer-events: none;
}

.theme-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;

  background: rgba(12, 35, 30, 0.1);
  border: 1px solid rgba(12, 35, 30, 0.22);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.theme-card__icon i {
  font-size: 1.55rem;
  color: var(--stps-verde);
}

/* Título */
.theme-card__title {
  margin: 0;
  text-align: center;
  font-weight: 800;
  color: var(--wine);
  letter-spacing: 0.2px;
  font-size: clamp(1.05rem, 1.25vw, 1.45rem);
  line-height: 1.15;
  font-family: "Noto Sans";
}

.theme-card__title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  margin: 10px auto 0;
  background: linear-gradient(
    90deg,
    rgba(97, 18, 50, 0.85),
    rgba(179, 142, 93, 0.85)
  );
}

.theme-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.14);
}

.theme-card:hover .theme-card__icon {
  transform: translateY(-2px);
  background: rgba(179, 142, 93, 0.18);
  border-color: rgba(179, 142, 93, 0.35);
}
.theme-card:hover .theme-card__icon i {
  color: var(--wine);
}

/* Focus accesible */
.theme-card:focus-visible {
  outline: 3px solid rgba(179, 142, 93, 0.55);
  outline-offset: 6px;
}

/* Nuevo Home */
.home-sources {
  /* padding: clamp(1.5rem, 3vw, 2.5rem) 0; */
  background: transparent;
}

.home-sources__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

.home-sources__head {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.home-sources__title {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--stps-guinda);
}

.home-sources__subtitle {
  margin-top: 0.4rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
}

.home-sources__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)); /* 👈 6 columnas */
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
  align-items: stretch;
}

/* Cada tarjeta ocupa 2 columnas (equivale a 3 tarjetas por fila) */
.home-sources__grid > .source-card {
  grid-column: span 2;
}

@media (min-width: 1600px) {
  .home-sources__grid > .source-card:nth-last-child(2) {
    grid-column: 2 / span 2;
  }

  .home-sources__grid > .source-card:last-child {
    grid-column: 4 / span 2;
  }
}

/* Card */
.source-card {
  background: var(--card-bg);
  border: 1px solid var(--wine-soft-1);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateZ(0);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.source-card a {
  text-decoration: none;
}
/* Imagen representativa */
.source-card__media {
  position: relative;
  padding: 14px 14px 0;
}

.source-card__img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  filter: saturate(1.03) contrast(1.02);
  border: 1px solid var(--wine-soft-1);
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.source-card__badge {
  position: absolute;
  left: 24px;
  bottom: -21px;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  background: #fff;
  border: 2px solid var(--stps-guinda);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);

  display: grid;
  place-items: center;

  color: var(--stps-guinda);
  font-size: 18px;
}

/* Contenido */
.source-card__title {
  margin: 22px 16px 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--stps-guinda);
  font-family: "Noto Sans";
}

.source-card__desc {
  margin: 0.65rem 16px 1.1rem;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--text);
  text-align: justify;
}

.source-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
  background: radial-gradient(
    1600px 220px at 50% -40px,
    rgba(97, 18, 50, 0.12),
    transparent 60%
  );
}

.source-card:hover,
.source-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--stps-guinda);
}

.source-card:hover::before,
.source-card:focus-within::before {
  opacity: 1;
}

.source-card__img {
  transition:
    transform 0.45s ease,
    filter 0.25s ease;
  will-change: transform;
}

.source-card:hover .source-card__img,
.source-card:focus-within .source-card__img {
  transform: scale(1.02);
  filter: saturate(1.06) contrast(1.03);
}

.source-card__badge {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.source-card:hover .source-card__badge,
.source-card:focus-within .source-card__badge {
  transform: translateY(-3px);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.16);
}

.source-card__title {
  transition:
    transform 0.22s ease,
    color 0.22s ease;
}
.source-card:hover .source-card__title,
.source-card:focus-within .source-card__title {
  transform: translateY(-1px);
}

/* =========================
   CTA 
========================= */

.source-card__cta {
  margin: auto 16px 16px;
  display: flex;
  justify-content: flex-start;
}

.source-card__cta .learn-more {
  position: relative;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: 0;

  width: clamp(11rem, 28vw, 13.5rem);
  min-width: max-content;

  height: 3rem;
  line-height: 3rem;
  font: inherit;
}

/* círculo */
.source-card__cta .learn-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  width: 3rem;
  height: 3rem;
  background: var(--stps-guinda);
  border-radius: 1.625rem;
}

/* icono */
.source-card__cta .learn-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
}

.source-card__cta .learn-more .circle .icon.arrow {
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

.source-card__cta .learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}

/* texto */
.source-card__cta .learn-more .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  inset: 0;
  margin-left: 4rem;
  padding: 0;
  color: #000;
  font-weight: 600;
  text-align: center;
  font-size: 1.2rem;
  white-space: nowrap;

  display: grid;
  place-items: center;
  line-height: 1;
}

/* hover / focus */
.source-card__cta .learn-more:hover .circle,
.source-card__cta .learn-more:focus-visible .circle {
  width: 135%;
}
/* AÑADIR ESTE A LOS ESTILOS ORIGINALES */
.source-card__cta[data-page="sitios_interes"] .learn-more:hover .circle,
.source-card__cta[data-page="sitios_interes"]
  .learn-more:focus-visible
  .circle {
  width: 80%;
}
.source-card__cta[data-page="sitios_interes"] {
  margin: auto 0px 15px;
}
.source-card__cta .learn-more:hover .circle .icon.arrow,
.source-card__cta .learn-more:focus-visible .circle .icon.arrow {
  background: #fff;
  transform: translate(1rem, 0);
}

.source-card__cta .learn-more:hover .button-text,
.source-card__cta .learn-more:focus-visible .button-text {
  color: #fff;
}

/* focus accesible */
.source-card__cta .learn-more:focus-visible {
  outline: 2px solid rgba(97, 18, 50, 0.35);
  outline-offset: 4px;
  border-radius: 999px;
}

.source-card__cta .learn-more {
  -webkit-tap-highlight-color: transparent;
}
/* =========================
   HOME HERO (Banner)
========================= */
.home-hero {
  background: transparent;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.home-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(1rem, 2.2vw, 1.6rem);
  align-items: center;
  max-width: var(--container, 1600px);
}

/* =========================
   Head
========================= */
.home-hero__head {
  margin-bottom: clamp(0.65rem, 1.4vw, 1.1rem);
}

.home-hero__title {
  margin: 0;
  font-family: "Noto Sans", sans-serif;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--stps-guinda, var(--wine));
  font-size: clamp(1.75rem, 3.8vw, 3.5rem);
}

.home-hero__subtitle {
  margin: 0.35rem 0 0;
  max-width: 70ch;
  color: rgba(0, 0, 0, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

/* =========================
   Search
========================= */
.home-hero__search {
  margin: 0 0 clamp(0.9rem, 2vw, 1.2rem);
}

.home-hero__searchBox {
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid var(--stps-guinda, var(--wine));
  border-radius: 18px;

  padding: clamp(0.45rem, 1.2vw, 0.65rem) clamp(0.7rem, 1.8vw, 0.95rem);

  box-shadow: rgba(0, 0, 0, 0.22) 0px 6px 14px;
}

.home-hero__searchBox i {
  color: var(--stps-guinda, var(--wine));
  font-size: 1.2rem;
  padding-left: 0.15rem;
}

.home-hero__searchBox input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: rgba(0, 0, 0, 0.85);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
}

.home-hero__searchBox input::placeholder {
  color: rgba(0, 0, 0, 0.55);
}

.home-hero__searchBtn {
  border: 0;
  cursor: pointer;
  border-radius: 50px;
  padding: 0.45rem clamp(0.85rem, 1.4vw, 1.05rem);
  font-size: 1.3rem;

  background: var(--gold, #b38e5d);
  color: #fff;
  font-weight: 800;

  transition:
    transform 0.15s ease,
    filter 0.15s ease;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}

.home-hero__searchBtn:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}
.home-hero__searchBtn:active {
  transform: translateY(0);
}

/* =========================
   Cards
========================= */
.home-hero__cards {
  display: grid;
  grid-template-columns: 1fr;
}

.home-hero__card {
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--wine-soft-1);
  border-radius: 18px;
  padding: clamp(1rem, 2vw, 1.6rem);
  box-shadow: var(--shadow, 0 18px 40px rgba(0, 0, 0, 0.12));
  overflow: hidden;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  isolation: isolate;
}
.home-hero__card--wide {
  width: 100%;
}

.home-hero__card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -148px;
  bottom: -132px;

  background: var(--stps-guinda);
  clip-path: polygon(50% 0%, 0 59%, 100% 100%);

  pointer-events: none;
  z-index: 0;
}

.home-hero__card > * {
  position: relative;
  z-index: 2;
}

.home-hero__card .home-hero__cardTopLine {
  display: none;
}

.home-hero__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.14);
  border-color: rgba(97, 18, 50, 0.26);
}
.home-hero__card--stacked {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-hero__openModal {
  width: min(300px, 50%);
  border: 1px solid var(--wine-soft-1);
  background: var(--stps-guinda);
  border-radius: 18px;
  padding: clamp(0rem, 2vw, 0.4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow, 0 18px 40px rgba(0, 0, 0, 0.12));
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  color: var(--white);
  justify-content: center;
  margin: 0 auto;
  font-size: 1.8rem;
}

.home-hero__openModal:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.14);
  border-color: rgba(97, 18, 50, 0.26);
}

.home-hero__openModalIcon {
  font-size: 1.25rem;
  line-height: 1;
}
/* MODAL base */
.ra-modal[hidden] {
  display: none;
}

.ra-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ra-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(2px);
}

.ra-modal__card {
  position: relative;
  width: min(900px, 92vw);
  max-height: min(45vh, 415px);
  z-index: 2;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 1);
}

.ra-modal__titleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ra-modal__close {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  line-height: 1;
  flex: 0 0 auto;
}

.ra-modal__close:hover {
  background: rgba(97, 18, 50, 0.08);
}

.ra-modal__body .home-hero__card {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.78);
}
.home-hero__card a {
  text-decoration-color: var(--stps-guinda);
}
.home-hero__card a p {
  color: var(--stps-guinda);
  font-weight: 500;
  text-align: center;
}
/* Separador horizontal */
.home-hero__divider {
  width: 100%;
  height: 1px;
  background: var(--wine-soft-1);
  margin: 0.5rem 0;
}

/* Chips en bloque*/
.home-hero__chips--block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.see-more--bottom {
  margin-top: auto;
}

.home-hero__cardTitle {
  margin: 0.35rem 0 0.55rem;
  font-family: "Noto Sans", sans-serif;
  font-weight: 800;
  color: var(--stps-guinda, var(--wine));
  font-size: clamp(1.1rem, 1.6vw, 1.55rem);
}
.home-hero__cardTitle[data-page="sitios_interes"] {
  border-bottom: none;
}

.home-hero__cardDesc {
  margin: 0 0 0.75rem;
  color: var(--text);
  line-height: 1.55;
  font-size: 1.25rem;
  text-align: justify;
}

.home-hero__card--panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-hero__topline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  border-radius: 50px;
  background: var(--stps-guinda, var(--wine));
  z-index: 3;
}

/* =========================
   Chips
========================= */
.home-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}
.home-hero__chips[data-page="accesos"] {
  margin-top: 1.25rem;
}
.home-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.46rem 0.75rem;
  border-radius: 999px;

  border: 1px solid rgba(97, 18, 50, 0.18);
  background: rgba(97, 18, 50, 0.06);
  color: rgba(0, 0, 0, 0.8);

  font-weight: 800;
  font-size: 1.2rem;

  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;

  text-decoration: none;
}

.home-hero__chip i {
  color: var(--stps-guinda, var(--wine));
  font-size: 1.1rem;
}

.home-hero__chip:hover {
  transform: translateY(-1px);
  background: rgba(97, 18, 50, 0.1);
  border-color: rgba(97, 18, 50, 0.28);
}
.home-hero__chips a:hover {
  color: var(--stps-guinda);
}

.home-hero__panelNote {
  margin: 0.85rem 0 0;
  color: var(--text);
  line-height: 1.5;
  font-size: 1.05rem;
}

/* =========================
   Seals (decor)
========================= */
.home-hero__seal {
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  border: 2px dashed rgba(97, 18, 50, 0.18);
  background: radial-gradient(
    circle at 30% 30%,
    rgba(179, 142, 93, 0.22),
    transparent 65%
  );
  opacity: 0.65;
  pointer-events: none;
}

.home-hero__seal--alt {
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
}

/* =========================
   Media (image + decorations)
========================= */
.home-hero__media {
  position: relative;
  min-height: 372px;
  border-radius: 0 15px 0 15px;
  overflow: hidden;
  background: transparent;
}
.home-hero__media::before,
.home-hero__media::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
}

/* Polígono grande */
.home-hero__media::before {
  width: 360px;
  height: 378px;
  right: -120px;
  top: -92px;
  background: rgba(97, 18, 50, 0.08);
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}

/* Polígono secundario */
.home-hero__media::after {
  width: 300px;
  height: 300px;
  left: -80px;
  bottom: -70px;
  background: rgba(179, 142, 93, 0.15);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}
/* la imagen */
.home-hero__img {
  position: relative;
  width: min(460px, 92%);
  height: auto;
  display: block;
  object-fit: contain;
  /* transform: translateY(45px); */
  /* filter: drop-shadow(0 18px 26px rgba(0,0,0,.18)); */
  filter: drop-shadow(15px 4px 13px rgba(0, 0, 0, 0.2));
  z-index: 1;
  transform: translate(15px, 15px);
}

/* =========================
   Responsive
========================= */
@media (max-width: 980px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
  }
  .home-hero__media {
    order: -1;
    min-height: 340px;
  }
  .home-hero__cards {
    grid-template-columns: 1fr;
  }
  .home-hero__ring {
    left: 50%;
  }
}

@media (max-width: 520px) {
  .home-hero__searchBox {
    grid-template-columns: auto 1fr;
  }
  .home-hero__searchBtn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* =========================
   Página RA (Registros Administrativos)
========================= */

.ra-page {
  padding: clamp(1.1rem, 2.2vw, 1.6rem) 0 clamp(2rem, 4vw, 3rem);
  background: transparent;
  overflow-x: clip;
}

.ra-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;

  gap: clamp(1rem, 2.2vw, 1.6rem);
  /* padding: clamp(1.1rem, 2.6vw, 2.1rem); */

  margin-bottom: clamp(1.2rem, 2.6vw, 2rem);
}
/* glow sutil */
.ra-banner::after {
  content: "";
  position: absolute;
  inset: -80px -80px auto -80px;
  height: 260px;
  background: radial-gradient(
    closest-side,
    rgba(97, 18, 50, 0.12),
    transparent 72%
  );
  opacity: 0.6;
  pointer-events: none;
}

.ra-banner__content {
  position: relative;
  z-index: 1;
}

.ra-banner__kicker {
  margin: 0 0 0.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  font-size: 1.12rem;
}

.ra-banner__title {
  margin: 0 0 0.55rem;
  color: var(--stps-guinda);
  font-weight: 800;
  font-size: clamp(1.55rem, 2.6vw, 4.2rem);
  font-family: "Noto Sans", sans-serif;
}

.ra-banner__desc {
  margin: 0 0 0.9rem;
  color: var(--text);
  line-height: 1.55;
  font-size: 1.5rem;
  text-align: justify;
  max-width: 80ch;
}

.ra-banner__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ra-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(97, 18, 50, 0.16);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(0, 0, 0, 0.78);
  font-weight: 800;
  font-size: 1.15rem;
}

.ra-pill i {
  color: var(--stps-guinda);
}

.ra-banner__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translateZ(0);
  transition:
    transform 0.45s ease,
    filter 0.25s ease;
  will-change: transform;
}

.ra-banner:hover .ra-banner__img {
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.02);
}

/* brillo sutil institucional */
.ra-banner::after {
  content: "";
  position: absolute;
  inset: -120px -120px auto -120px;
  height: 320px;
  background: radial-gradient(
    closest-side,
    rgba(97, 18, 50, 0.12),
    transparent 70%
  );
  opacity: 0.65;
  pointer-events: none;
}

.ra-banner__content {
  position: relative;
  z-index: 2;
}

.ra-banner__desc {
  margin: 0 0 0.9rem;
  color: var(--text);
  line-height: 1.55;
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  text-align: justify;
  max-width: 78ch;
}

/* ========= MEDIA (lado derecho) ========= */
.ra-banner__media {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: end center;

  min-height: clamp(260px, 30vw, 420px);
}

.ra-figure {
  position: relative;
  width: min(520px, 100%);
  height: 100%;
  display: grid;
  place-items: end center;
  isolation: isolate;
}

.ra-blob {
  position: absolute;
  inset: auto;
  z-index: 1;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.1));
  opacity: 0.95;
}

.ra-blob--1 {
  width: clamp(240px, 26vw, 360px);
  height: clamp(240px, 26vw, 360px);
  right: clamp(6px, 1.2vw, 16px);
  bottom: clamp(18px, 2.6vw, 38px);
  background: radial-gradient(
    circle at 30% 30%,
    rgba(230, 209, 148, 0.95),
    rgba(179, 142, 93, 0.65) 55%,
    rgba(179, 142, 93, 0.25) 100%
  );
  border-radius: 52% 48% 55% 45% / 48% 45% 55% 52%;
}

.ra-blob--2 {
  width: clamp(220px, 24vw, 330px);
  height: clamp(220px, 24vw, 330px);
  right: clamp(34px, 3.2vw, 70px);
  bottom: clamp(8px, 1.4vw, 22px);
  background: radial-gradient(
    circle at 35% 35%,
    rgba(97, 18, 50, 0.22),
    rgba(97, 18, 50, 0.1) 55%,
    transparent 75%
  );
  border-radius: 45% 55% 45% 55% / 55% 45% 55% 45%;
}

/* aro decorativo */
.ra-ring {
  position: absolute;
  z-index: 1;
  width: clamp(150px, 16vw, 220px);
  height: clamp(150px, 16vw, 220px);
  right: clamp(24px, 2.2vw, 46px);
  top: clamp(6px, 1vw, 12px);
  border-radius: 999px;
  border: 2px solid rgba(97, 18, 50, 0.18);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.25),
    transparent 55%
  );
}

.ra-person {
  position: relative;
  z-index: 3;
  display: block;
  height: auto;
  max-width: 100%;
  max-height: clamp(280px, 34vw, 460px);
  object-fit: contain;
  transform: translateX(clamp(2px, 1.1vw, -20px));
}

/* Hover sutil (no exagerado) */
.ra-banner:hover .ra-person {
  transform: translateX(clamp(2px, 1.1vw, 0px)) scale(1.01);
  transition: transform 0.35s ease;
}

/* Pills se ven más “pro” sobre el fondo */
.ra-pill {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(97, 18, 50, 0.14);
}

.border {
  display: block;
  width: fit-content;
  border-radius: 0 0 20px 92px;
  overflow: hidden;
  position: relative;
  z-index: 3;
}
.border-banner {
  display: block;
  width: fit-content;
  border-radius: 0 0 285px 999px;
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.border-banner-tablero {
  display: block;
  width: fit-content;
  border-radius: 0 0 150px 150px;
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.border-banner-atlas {
  display: block;
  width: fit-content;
  border-radius: 0 24px 24px 24px;
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.ra-page[data-page="perfiles"] .ra-banner__media {
  min-height: clamp(170px, 16vw, 260px);
  place-items: center; /* opcional: centra el mapa */
}

.ra-page[data-page="perfiles"] .ra-banner::after {
  inset: -40px -80px auto -80px;
  height: 180px;
  opacity: 0.45;
}

.ra-page[data-page="encuestas"] .ra-banner__media {
  min-height: clamp(170px, 16vw, 260px);
  place-items: center; /* opcional: centra el mapa */
}

.ra-page[data-page="encuestas"] .ra-banner::after {
  inset: -40px -80px auto -80px;
  height: 180px;
  opacity: 0.45;
}

.ra-page[data-page="agenda"] .ra-banner::after {
  inset: -40px -80px auto -80px;
  height: 180px;
  opacity: 0.45;
}

.ra-page[data-page="atlas"] .ra-banner__media {
  min-height: clamp(170px, 16vw, 260px);
  place-items: center; /* opcional: centra el mapa */
}

.ra-page[data-page="atlas"] .ra-banner::after {
  inset: -40px -80px auto -80px;
  height: 180px;
  opacity: 0.45;
}

/* ========= Responsive ========= */
@media (max-width: 980px) {
  .ra-banner {
    grid-template-columns: 1fr;
    padding: clamp(1rem, 3vw, 1.6rem);
  }
  .ra-banner__media {
    order: -1; /* imagen arriba */
    min-height: clamp(220px, 44vw, 360px);
  }
  .ra-person {
    height: clamp(240px, 52vw, 380px);
    transform: translateX(0);
  }
  .ra-banner:hover .ra-person {
    transform: scale(1.01);
  }
}

/* =========================
   GRID TARJETAS
========================= */
.ra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.3vw, 1.6rem);
  align-items: stretch;
}
@media (min-width: 1600px) {
  .ra-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  /* Todas las tarjetas ocupan 2 columnas (3 por fila) */
  .ra-grid > .ra-card {
    grid-column: span 2;
  }

  /* Última fila centrada (espacio igual a ambos lados) */
  .ra-grid > .ra-card--pjcf {
    grid-column: 2 / span 2; /* columnas 2-3 */
  }

  .ra-grid > .ra-card--riesgos {
    grid-column: 4 / span 2; /* columnas 4-5 */
  }
  .ra-grid > .ra-card--siaat {
    grid-column: 3 / span 2;
  }
  .ra-grid > .ra-card--perfiles {
    grid-column: 3 / span 2;
  }
  .ra-grid > .ra-card--entorno {
    grid-column: 3 / span 2;
  }
  .ra-grid > .ra-card--sitios {
    grid-column: 3 / span 2;
  }
  .ra-grid:has(.ra-card:nth-child(2):last-child) {
    grid-template-columns: repeat(6, 1fr);
  }

  /* Cada tarjeta ocupa 2 columnas (mismo ancho visual que antes) */
  .ra-grid:has(.ra-card:nth-child(2):last-child) > .ra-card {
    grid-column: span 2;
  }

  /* Colocarlas centradas */
  .ra-grid:has(.ra-card:nth-child(2):last-child) > .ra-card:first-child {
    grid-column: 2 / span 2;
  }

  .ra-grid:has(.ra-card:nth-child(2):last-child) > .ra-card:last-child {
    grid-column: 4 / span 2;
  }
}

/* Card */
.ra-card {
  position: relative;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(97, 18, 50, 0.14);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;

  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;

  transform: translateZ(0);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.ra-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
  background: radial-gradient(
    1600px 220px at 50% -40px,
    rgba(97, 18, 50, 0.12),
    transparent 60%
  );
}

.ra-card:hover,
.ra-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.14);
  border-color: rgba(97, 18, 50, 0.24);
}

.ra-card:hover::before,
.ra-card:focus-within::before {
  opacity: 1;
}

/* media con imagen */
.ra-card__media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(97, 18, 50, 0.12);
  height: 150px;
  background: rgba(97, 18, 50, 0.05);
}

.ra-card__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  transform: translateZ(0);
  transition:
    transform 0.45s ease,
    filter 0.25s ease;
  will-change: transform;
}

.ra-card:hover .ra-card__img,
.ra-card:focus-within .ra-card__img {
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.02);
}

.ra-card__title {
  margin: 14px 10px 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--stps-guinda);
  font-family: "Noto Sans", sans-serif;
}

.ra-card__desc {
  margin: 0.6rem 10px 1rem;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--text);
  text-align: justify;
}

/* CTA (tu mismo efecto) */
.ra-card__cta {
  margin: auto 10px 0;
  display: flex;
  justify-content: flex-start;
}

.ra-card__cta .learn-more {
  position: relative;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: 0;

  width: clamp(12rem, 30vw, 14rem);
  min-width: max-content;

  height: 3rem;
  line-height: 3rem;
  font: inherit;

  -webkit-tap-highlight-color: transparent;
}

.ra-card__cta .learn-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  width: 3rem;
  height: 3rem;
  background: var(--stps-guinda);
  border-radius: 1.625rem;
}

.ra-card__cta .learn-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
}

.ra-card__cta .learn-more .circle .icon.arrow {
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

.ra-card__cta .learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}

.ra-card__cta .learn-more .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  inset: 0;
  margin-left: 4rem;
  padding: 0;
  color: #000;
  font-weight: 700;
  text-align: center;
  font-size: 1.1rem;
  white-space: nowrap;
  display: grid;
  place-items: center;
  line-height: 1;
}

.ra-card__cta .learn-more:hover .circle,
.ra-card__cta .learn-more:focus-visible .circle {
  width: 135%;
}

.ra-card__cta .learn-more:hover .circle .icon.arrow,
.ra-card__cta .learn-more:focus-visible .circle .icon.arrow {
  background: #fff;
  transform: translate(1rem, 0);
}

.ra-card__cta .learn-more:hover .button-text,
.ra-card__cta .learn-more:focus-visible .button-text {
  color: #fff;
}

.ra-card__cta .learn-more:focus-visible {
  outline: 2px solid rgba(97, 18, 50, 0.35);
  outline-offset: 4px;
  border-radius: 999px;
}

/* =========================
   BREADCRUMB (Ruta)
========================= */
.ra-breadcrumb {
  margin: 0 0 0.35rem;
  position: relative;
  z-index: 2;
}

.ra-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.ra-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.2rem;
  color: rgba(0, 0, 0, 0.55);
  font-weight: 700;
}

.ra-breadcrumb__item + .ra-breadcrumb__item::before {
  content: "›";
  display: inline-block;
  margin: 0 0.35rem 0 0.1rem;
  color: rgba(97, 18, 50, 0.45);
  font-weight: 800;
}

.ra-breadcrumb__link {
  color: rgba(97, 18, 50, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(97, 18, 50, 0.18);
  padding-bottom: 1px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.ra-breadcrumb__link:hover {
  color: var(--stps-guinda);
  border-color: rgba(97, 18, 50, 0.35);
}

.ra-breadcrumb__current {
  color: rgba(0, 0, 0, 0.65);
  font-weight: 800;
}

.ra-card a {
  text-decoration: none;
}

.home-hero__card--full {
  width: 100%;
}

.home-hero__card--full .home-hero__cardDesc {
  font-size: 1.3rem;
}
.home-hero__card--full {
  grid-column: 1 / -1;
}

.header__hero {
  border-bottom: 1px solid var(--wine-soft-1);
  padding-bottom: 1rem;
}

.profiles-detailgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.1rem, 2.3vw, 1.6rem);
  margin-top: clamp(1.1rem, 2.3vw, 1.6rem);
  align-items: stretch;
}
@media (max-width: 980px) {
  .profiles-detailgrid {
    grid-template-columns: 1fr;
  }
}

/* Visor tabla */

.profiles-tablewrap__empty {
  padding: 1rem;
  color: rgba(0, 0, 0, 0.65);
}

/* Tabla generada desde Excel */
.profiles-tablewrap table {
  width: 100%;
  border-collapse: separate; /* ✅ para esquinas suaves */
  border-spacing: 0;
  font-size: 1.2rem;
  overflow: hidden;
  border-radius: 12px;
}
.profiles-tablewrap th,
.profiles-tablewrap td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: top;
  font-weight: 400;
}
.profiles-tablewrap thead th {
  position: sticky;
  top: 0;
  background: var(--stps-guinda);
  color: #fff;
  z-index: 2;
  padding: 12px 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}


/* Primera y última fila redondeadas visualmente */
.profiles-tablewrap thead th:first-child {
  border-top-left-radius: 12px;
}
.profiles-tablewrap thead th:last-child {
  border-top-right-radius: 12px;
}
.profiles-tablewrap tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}
.profiles-tablewrap tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.profiles-detailgrid {
  text-align: center;
}

.profiles-excel__badge,
.profiles-excel__actions,
.profiles-pdf__badge,
.profiles-pdf__actions {
  text-align: center;
}

/* Badge nivel */
.lvl-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}
.lvl-badge[data-lvl="Alto"] {
  background: rgba(97, 18, 50, 0.1);
  border-color: rgba(97, 18, 50, 0.28);
}
.lvl-badge[data-lvl="Medio"] {
  background: rgba(179, 142, 93, 0.18);
  border-color: rgba(179, 142, 93, 0.4);
}
.lvl-badge[data-lvl="Bajo"] {
  background: rgba(30, 91, 79, 0.12);
  border-color: rgba(30, 91, 79, 0.3);
}
.brand-desc a {
  color: var(--stps-guinda);
}
.brand-desc a:hover {
  color: var(--gold);
}

/* Altura igual a las secciones de arriba */
.profiles-detail__body {
  height: var(--topCardH);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(97, 18, 50, 0.18);
  background: rgba(255, 255, 255, 0.82);
}

/* Quita el max-height anterior para que no “compita” */
.profiles-tablewrap {
  padding: 12px; /* ✅ espacio interno */
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(97, 18, 50, 0.16);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

/* El iframe debe ocupar todo el alto del contenedor */
.profiles-pdf__viewer {
  overflow: hidden; /* el scroll lo maneja .profiles-detail__body */
}
.profiles-pdf__viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.profiles-excel__badge {
  align-items: center;
}
.profiles-excel__meta {
  color: var(--text, rgba(0, 0, 0, 0.75));
  font-size: 1.2rem;
}

.profiles-card--excel {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* separa el botón de la tabla */
.profiles-excel__actions {
  margin-top: -15px;
}

/* Espacio interno real en ambas tarjetas */
.profiles-card--excel,
.profiles-card--pdf{
  padding: 20px 22px 22px;   /* 👈 margen interno real */
  box-sizing: border-box;
}

/* Solo la primera fila (título largo) */
.profiles-tablewrap table tr:first-child > td,
.profiles-tablewrap table tr:first-child > th{
  background: var(--stps-guinda);
  color: var(--white);
  font-weight: 700;
  text-align: center;
}

/* Fila 2: NACIONAL */
.profiles-tablewrap table tr:nth-child(2) > td,
.profiles-tablewrap table tr:nth-child(2) > th{
  background: var(--stps-guinda-2);
  color: var(--white);
  font-weight: 800;
  text-align: center;
}
@media (max-width: 920px) {
  .home-hero__card--full .home-hero__chip {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .ra-breadcrumb__item {
    font-size: 0.95rem;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .ra-banner {
    grid-template-columns: 1fr;
  }
  .ra-banner__media {
    min-height: 190px;
  }

  .ra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ra-grid > .ra-card:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(420px, 100%);
  }
}

@media (max-width: 640px) {
  .ra-grid {
    grid-template-columns: 1fr;
  }
  .ra-card__media {
    height: 140px;
  }

  .ra-grid > .ra-card {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .home-intro__inner {
    grid-template-columns: 1fr;
  }
  .home-intro__panel {
    order: -1;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .home-sources__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .source-card__img {
    height: 150px;
  }
}

@media (max-width: 560px) {
  .home-sources__grid {
    grid-template-columns: 1fr;
  }
  .source-card__img {
    height: 170px;
  }
}

@media (max-width: 980px) {
  .themes__grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}
@media (max-width: 560px) {
  .themes__grid {
    grid-template-columns: 1fr;
  }
}

@keyframes sk {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 120% 0;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .srch-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .eco-group__head,
  .eco-sub__row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "links"
      "desc";
  }

  .eco-group__links,
  .eco-sub__links {
    justify-content: flex-start;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .profiles__grid {
    grid-template-columns: 1fr;
  }
  .profiles-map__svg {
    height: clamp(280px, 44vh, 420px);
  }
  .profiles-pdf__row {
    grid-template-columns: 1fr;
  }
  .profiles-btn {
    justify-content: center;
    width: 100%;
  }
}

/* =========================
   ÚLTIMA FILA CENTRADA (2 tarjetas) SIN CAMBIAR TAMAÑO
========================= */
@media (min-width: 981px) {
  .cards-grid > .mcard:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 5 / span 4; /* centra el par */
  }
}

/* Tablet */
@media (max-width: 980px) {
  .mcard {
    grid-column: span 6;
  }
  .cards-grid > .mcard:last-child:nth-child(2n + 1) {
    grid-column: 4 / span 6;
  }
}

/* Móvil */
@media (max-width: 560px) {
  .mcard {
    grid-column: 1 / -1;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .dir-card__top {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "t t"
      "b c";
    align-items: start;
  }
  .dir-card__topText {
    grid-column: 1 / -1;
  }
  .dir-badge {
    justify-self: start;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .about-triad {
    grid-template-columns: 1fr;
  }
  .about-mini__icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
}

/* Responsive: 2 cols -> 1 col en móvil */
@media (max-width: 720px) {
  .about-card--wide .about-list {
    grid-template-columns: 1fr;
  }
  .about-highlights {
    grid-template-columns: 1fr;
  }
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 780px) {
  /* Highlights pasan de 3 -> 1 columna */
  .about-highlights {
    grid-template-columns: 1fr;
  }

  /* Lista pasa de 2 -> 1 columna */
  .about-card--wide .about-list {
    grid-template-columns: 1fr;
  }
}

/* =========================
   ANIMACIÓN DE ENTRADA (suave y accesible)
   ========================= */
@media (prefers-reduced-motion: no-preference) {
  .about-card {
    animation: cardIn 0.45s ease both;
  }
  .about-card:nth-of-type(1) {
    animation-delay: 0s;
  }
  .about-card:nth-of-type(2) {
    animation-delay: 0.06s;
  }
  .about-card:nth-of-type(3) {
    animation-delay: 0.12s;
  }
  .about-card:nth-of-type(4) {
    animation-delay: 0.18s;
  }
  .about-card:nth-of-type(5) {
    animation-delay: 0.24s;
  }

  @keyframes cardIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Responsive */
@media (max-width: 980px) {
  .footer-poligonos__grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-template-columns: 96px 1fr;
    align-items: flex-start;
  }

  .footer-brand__logo {
    width: 96px;
    max-height: 96px;
  }
  .socialBtn {
    width: 42px;
    height: 42px;
  }
  .socialBtn .svgIcon {
    width: 20px;
    height: 20px;
  }
  .about-card {
    grid-column: span 12;
  }
  .about-card--intro {
    grid-column: span 12;
  }
  .about-highlights {
    grid-template-columns: 1fr;
  }
  .about-card--tri {
    grid-column: 1 / -1; /* se apilan */
  }
  .about-card__text--center {
    max-width: 75ch;
  }
  .about-highlights {
    grid-template-columns: 1fr; /* highlights en columna */
  }
  .home-widgets__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "viz"
      "ticker"
      "cloud"
      "about";
  }

  .panel--viz .viz {
    min-height: clamp(420px, 70vh, 860px);
  }

  .viz__slides object {
    height: clamp(520px, 75vh, 900px);
  }
}

/* Flip: hover en desktop */
@media (hover: hover) {
  .hex-card__link:hover .hex-card__inner {
    transform: rotateY(180deg);
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: var(--pad-x);
    right: var(--pad-x);
    top: 76px;

    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;

    padding: 0.5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    z-index: 50;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link {
    border-radius: 12px;
    padding: 0.75rem 1rem;
  }

  /* Para que el menú absoluto se posicione bien */
  .site-header__inner {
    display: flex; /* vuelve a flex en móvil */
    justify-content: space-between;
  }
}
@media (max-width: 900px) {
  .home-sources__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-sources__grid > .source-card {
    grid-column: span 2; /* 2 por fila */
  }
}
@media (max-width: 560px) {
  .home-sources__grid {
    grid-template-columns: 1fr;
  }
  .home-sources__grid > .source-card,
  .home-sources__grid > .source-card:nth-last-child(2),
  .home-sources__grid > .source-card:last-child {
    grid-column: auto;
  }
}




/* =========================================================
   ENOE · Styles patch (NO globales)
   Solo afecta lo que esté dentro de <main class="enoe">
========================================================= */

/* Layout base del módulo */
.enoe {
  background: transparent;
  padding: clamp(1.2rem, 3vw, 2.2rem) 0;
}

.enoe__inner {
  max-width: var(--container, 1600px);
  margin-inline: auto;
  padding-inline: var(--pad-x, 16px);
}

.enoe .enoe-shell {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(97, 18, 50, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
  padding: 18px;
}

.enoe .enoe-board {
  display: grid;
  grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 600px;
}



.enoe .enoe-sidebar {
  min-width: 0;
  padding-right: 18px;
  border-right: 1px solid rgba(97, 18, 50, 0.12);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.enoe .enoe-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  padding-left: 38px;
  overflow: hidden;
  align-items: stretch;
}
.enoe .enoe-main > .profiles-map,
.enoe .enoe-main > .card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.enoe #mapWrap,
.enoe .card,
.enoe .chartWrap,
.enoe #chart {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 980px) {
  .enoe .enoe-shell {
    padding: 14px;
  }

  .enoe .enoe-board {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
    gap: 18px;
  }

  .enoe .enoe-sidebar {
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(97, 18, 50, 0.12);
  }

  .enoe .ctrlbar {
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  .enoe .ctrlbar__stack {
    overflow: visible;
    max-height: none;
    min-height: auto;
    padding-right: 0;
  }

  .enoe .enoe-main {
    grid-template-columns: 1fr;
    padding-left: 0;
    padding-top: 18px;
    gap: 18px;
    overflow: visible;
  }

  .enoe .enoe-main > .profiles-map,
  .enoe .enoe-main > .card {
    min-width: 0;
    width: 100%;
    min-height: auto;
    height: auto;
  }

  .enoe #mapWrap.profiles-map {
    overflow: visible;
  }

  .enoe #mapWrap .profiles-map__svg,
  .enoe #chart {
    min-height: 320px;
  }
  .brand-title{
    font-size: clamp(1.55rem, 3.8vw, 1.8rem);
  }
}

.enoe__head {
  text-align: center;
  margin-bottom: clamp(1rem, 2.4vw, 1.6rem);
}

.enoe__title {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--wine, #611232);
  letter-spacing: 0.2px;
}

.enoe__desc {
margin: 0.5rem auto 0;
  max-width: 100%;
  color: var(--text);
  font-size: clamp(1rem, 1.7vw, 1.4rem);
  text-align: center;
}

/* =========================================================
   Controls bar (ctrlbar)
========================================================= */
.enoe .ctrlbar {
  height: 100%;
  min-height: 1000px;
  max-height: 1000px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.enoe .ctrlbar__stack {
  display: grid;
  align-content: start;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 16px;
  max-height: 100%;
}
.enoe .ctrlbar__stack::-webkit-scrollbar {
  width: 10px;
}

.enoe .ctrlbar__stack::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 4px;
}

.enoe .ctrlbar__stack::-webkit-scrollbar-thumb {
  background: rgba(97, 18, 50, 0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.enoe .ctrlbar__top,
.enoe .ctrlbar__actions {
  flex: 0 0 auto;
}

.enoe .ctrlbar__actions {
  margin-top: auto;
  padding-top: 10px;
  border-top: 0;
  flex: 0 0 auto;
}

/* bloque */
.enoe .block {
  display: grid;
  gap: 8px;
}

.enoe .block__head {
  display: grid;
  gap: 4px;
}

.enoe .block__title {
  font-weight: 800;
  color: rgba(97, 18, 50, 0.92);
  letter-spacing: 0.2px;
}

.enoe .block__help {
  color: var(--text, rgba(0, 0, 0, 0.75));
  font-size: 1.2rem;
}

.enoe .small {
  color: rgba(0, 0, 0, 0.72);
  font-size: 1.05rem;
}

/* selects */
.enoe .select {
  position: relative;
  display: grid;
  align-items: center;
}

.enoe .select select {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(97, 18, 50, 0.18);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 8px 42px 9px 11px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.82);
  outline: none;
  font-size: 1.3rem;
  line-height: 1.2;
}

.enoe .select i {
  position: absolute;
  right: 14px;
  pointer-events: none;
  color: rgba(97, 18, 50, 0.72);
}

/* botones / fila */
.enoe .btnRow {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
}

.enoe .btnRow--entities {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.enoe .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 14px;
  border: 2px solid rgba(97, 18, 50, 0.55);
  background: transparent;
  font-weight: 800;
  color: var(--wine, #611232);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease, border-color 0.3s ease;
  font-size: 1.5rem;
  line-height: 1;
  white-space: nowrap;
}

.enoe .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wine, #611232);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.076, 1);
  z-index: -1;
}

.enoe .btn:hover::before {
  transform: translateX(0);
}

.enoe .btn:hover {
  color: #fff;
  border-color: var(--wine, #611232);
  text-decoration: none;
}

.enoe .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(97, 18, 50, 0.25);
}

.enoe .btn i {
  position: relative;
  z-index: 1;
}

.enoe .btn span,
.enoe .btn strong {
  position: relative;
  z-index: 1;
}

.enoe .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(97, 18, 50, 0.14);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  font-size: 1.3rem;
  color: rgba(0, 0, 0, 0.78);
  white-space: nowrap;
}


/* =========================================================
   MAPA (tu contenedor ya usa .profiles-map)
   Importante: todo va prefijado con .enoe para no afectar Perfiles
========================================================= */
.enoe #mapWrap.profiles-map {
  width: 100%;
  min-width: 0;
  padding: 0 0 18px 0;
  position: relative;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  isolation: auto;
  display: flex;
  flex-direction: column;
}

.enoe #mx-map {
  overflow: visible;
}
.enoe #mapWrap .profiles-map__svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 560 / 495;
  min-height: 320px;
  display: block;
  position: relative;
  z-index: 1;
  overflow: visible;
}
.enoe #mapWrap .chip-tooltip {
  transform: translateZ(0);
}
.enoe #mapWrap .mx-tooltip {
  will-change: transform, left, top;
}
.enoe #mapWrap .map-panel__head,
.enoe .chart-panel__head {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  /* min-height: 150px; */
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(97, 18, 50, 0.1);
  box-sizing: border-box;
  text-align: center;
}

.enoe #mapWrap .map-panel__meta,
.enoe .chart-panel__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  min-height: 31px;
}

/* descripción con altura pareja, sin tocar color/tamaño */
.enoe #mapWrap .map-panel__desc,
.enoe .chart-panel__desc {
  margin: 0;
  min-height: 3.2em;
}


.enoe #mapWrap .map-panel__period{
  font-size:1.6rem;
  font-weight:800;
  color:rgba(97,18,50,.82);
}

.enoe #mapWrap .map-panel__desc{
margin-top: 2px;
  font-size: 1.2rem;
  color: var(--text);
  max-width: 100%;
  text-align: center;
}
.enoe #mapWrap .map-panel__titles {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.enoe #mapWrap .map-panel__title {
margin: 0;
  font-family: "Noto Sans", sans-serif;
  font-size: 1.9rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--stps-guinda);
  text-align: center;
}
.enoe #mapWrap .map-panel__title,
.enoe .chart-panel__title {
  margin: 0;
}
.enoe #mapWrap .map-panel__selection {
  margin: 0;
  font-family: "Noto Sans", sans-serif;
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.72);
}

.enoe #mapWrap .profiles-map__hint {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: rgba(97, 18, 50, 0.82);
  text-align: right;
  white-space: nowrap;
}

/* estados (solo dentro del mapa ENOE) */
.enoe #mapWrap .mx-state {
  fill: var(--map-base, #611232);
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.2;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease, opacity 0.14s ease, fill 0.14s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.enoe #mapWrap .mx-state:hover,
.enoe #mapWrap .mx-state.is-hover {
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.18));
  transform: translateY(-2px) scale(1.01);
}

.enoe #mapWrap .mx-state.is-selected {
  fill: var(--map-selected, #3a0f1f);
  filter: drop-shadow(0 7px 13px rgba(0, 0, 0, 0.25));
  transform: translateY(-3px) scale(1.015);
  opacity: 1;
}

.enoe #mapWrap.is-has-selection .mx-state {
  opacity: 0.24;
}

.enoe #mapWrap.is-has-selection .mx-state.is-selected {
  opacity: 1;
}

.enoe #mapWrap .mx-state.is-selected--focus {
  stroke: rgba(179, 142, 93, 0.95);
  stroke-width: 2.4;
}

/* tooltip mapa */
/* tooltip mapa */
.enoe #mapWrap .mx-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--gold, #b38e5d);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  font-family: "Noto Sans", system-ui, sans-serif;
  pointer-events: none;
  max-width: 280px;
  white-space: nowrap;
  z-index: 999999;
  display: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.enoe #mapWrap .mx-tooltip.is-show {
  display: block;
}

/* tooltip chips */
.enoe #mapWrap .chip-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  background: var(--gold, #b38e5d);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  padding: 7px 9px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 999999;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  display: none;
}

.enoe #mapWrap .chip-tooltip.is-show {
  display: block;
}

.enoe #mapWrap .chip-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--gold, #b38e5d);
}

/* =========================================================
   Leyenda (heatmap)
========================================================= */
.enoe #mapWrap .heat-legend {
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(97, 18, 50, 0.12);
  background: rgba(255, 255, 255, 0.55);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.enoe #mapWrap .heat-legend__inner {
  display: grid;
  gap: 8px;
}

.enoe #mapWrap .heat-legend__title {
  font-weight: 800;
  color: rgba(97, 18, 50, 0.92);
  letter-spacing: 0.2px;
  font-size: 1.3rem;
}

.enoe #mapWrap .heat-legend__bar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.enoe #mapWrap .heat-legend__bar > span {
  display: block;
  height: 100%;
}

.enoe #mapWrap .heat-legend__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.1rem;
  color: rgba(0, 0, 0, 0.72);
  font-weight: 800;
}

/* =========================================================
   Card gráfica (derecha)
========================================================= */
.enoe .card {
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.enoe .card__kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(97, 18, 50, 0.1);
}

.enoe .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: rgba(97, 18, 50, 0.92);
  letter-spacing: 0.2px;
}


.enoe .kicker__hint {
  color: var(--text, rgba(0, 0, 0, 0.75));
  font-size: 1rem;
  font-weight: 800;
}

.enoe .chartWrap {
  padding: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 0;
}
.enoe #chart {
  width: 100%;
  height: 740px;
  min-height: 740px;
  max-height: 740px;
}
/* mensajes */
.enoe .msg {
  display: none;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(97, 18, 50, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: rgba(0, 0, 0, 0.78);
  font-weight: 700;
}

.enoe .msg.is-show {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.enoe #footNote {
  color: rgba(0, 0, 0, 0.65);
  font-size: 0.98rem;
}

/* =========================
   MODAL ENTIDADES
========================= */
#dlgEntities {
  border: 0;
  padding: 0;
  border-radius: 20px;
  width: min(680px, 90vw);
  max-height: 86vh;
  margin: auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  font-family: "Noto Sans", sans-serif;
}

#dlgEntities::backdrop {
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(2px);
}

#dlgEntities .dlg {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  background: #fff;
  font-family: "Noto Sans", sans-serif;
}

#dlgEntities .dlg__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-top: 4px solid #611232;
  border-bottom: 1px solid rgba(97, 18, 50, 0.12);
  background: #fff;
}

#dlgEntities .dlg__title {
  margin: 0;
  font-family: "Noto Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #611232;
}

#dlgEntities .dlg__close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(97, 18, 50, 0.12);
  background: #fff;
  color: #611232;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

#dlgEntities .dlg__close:hover {
  background: rgba(97, 18, 50, 0.06);
  transform: scale(1.03);
}

#dlgEntities .dlg__search {
  padding: 16px 18px 8px;
  display: grid;
  gap: 10px;
}

#dlgEntities .dlg__searchLabel {
  font-family: "Noto Sans", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #611232;
}

#dlgEntities .dlgSearchBar {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  border-radius: 999px;
  border: 2px solid rgba(97, 18, 50, 0.72);
  background: #fff;
  overflow: hidden;
}

#dlgEntities .dlgSearchBar__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  color: #611232;
  font-size: 0.95rem;
}

#dlgEntities .dlgSearchBar input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 0 12px 0 0;
  font-family: "Noto Sans", sans-serif;
  font-size: 1.15rem;
  color: rgba(0, 0, 0, 0.82);
  outline: none;
  box-shadow: none;
}

#dlgEntities .dlgSearchBar input[type="search"]::placeholder {
  color: rgba(0, 0, 0, 0.42);
}

#dlgEntities .dlgSearchBar__btn {
  margin-right: 6px;
  border: 0;
  min-width: 92px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #b38e5d;
  color: #fff;
  font-family: "Noto Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: default;
}

#dlgEntities .small {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.66);
}

#dlgEntities .dlg__list {
  padding: 8px 18px 16px;
  overflow: auto;
  max-height: 48vh;
  display: grid;
  gap: 10px;
}

#dlgEntities .dlg-entity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(97, 18, 50, 0.1);
  background: rgba(255, 255, 255, 0.96);
  transition: all 0.2s ease;
  cursor: pointer;
}

#dlgEntities .dlg-entity:hover {
  background: rgba(97, 18, 50, 0.04);
  border-color: rgba(97, 18, 50, 0.16);
}

#dlgEntities .dlg-entity__left {
  display: flex;
  align-items: center;
  min-width: 0;
}

#dlgEntities .dlg-entity__code {
  display: none;
}

#dlgEntities .dlg-entity__name {
  font-family: "Noto Sans", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.80);
  line-height: 1.25;
}

#dlgEntities .dlg-entity__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  min-width: 26px;
}

#dlgEntities .dlg-entity__check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #611232;
  cursor: pointer;
  margin: 0;
}

#dlgEntities .dlg__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(97, 18, 50, 0.12);
  background: #fff;
}

#dlgEntities .counter {
  font-family: "Noto Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.80);
}

#dlgEntities .dlg__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#dlgEntities .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 14px;
  border: 2px solid rgba(97, 18, 50, 0.55);
  background: transparent;
  font-family: "Noto Sans", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  color: #611232;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease, border-color 0.3s ease;
}

#dlgEntities .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #611232;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.076, 1);
  z-index: -1;
}

#dlgEntities .btn:hover::before {
  transform: translateX(0);
}

#dlgEntities .btn:hover {
  color: #fff;
}
#dlgEntities .btn--primary:hover{
  border-color: var(--stps-guinda);
}

#dlgEntities .btn i {
  position: relative;
  z-index: 1;
}

#dlgEntities .btn--ghost,
#dlgEntities .btn--primary {
  background: transparent;
}

@media (max-width: 640px) {
  #dlgEntities {
    width: 96vw;
    max-height: 92vh;
    border-radius: 18px;
  }

  #dlgEntities .dlg__top,
  #dlgEntities .dlg__search,
  #dlgEntities .dlg__list,
  #dlgEntities .dlg__bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  #dlgEntities .dlg__title {
    font-size: 1.45rem;
  }

  #dlgEntities .dlg__bottom {
    align-items: stretch;
  }

  #dlgEntities .dlg__actions {
    width: 100%;
    justify-content: stretch;
  }

  #dlgEntities .dlg__actions .btn {
    flex: 1;
    justify-content: center;
  }
}


/* =========================================================
   Ajustes UX / layout comparador
========================================================= */
.enoe .ctrlbar__top {
 display: grid;
  gap: 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(97, 18, 50, 0.1);
  padding-bottom: 12px;
}


.enoe .ctrlbar__titleWrap {
  display: grid;
  gap: 6px;
  text-align: center;
  justify-items: center;
}

.enoe .ctrlbar__title {
  margin: 0;
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.1;
  font-weight: 800;
  color: rgba(97, 18, 50, 0.96);
  letter-spacing: 0.2px;
}

.enoe .ctrlbar__intro {
margin: 0;
  max-width: 45ch;
  font-family: "Noto Sans", sans-serif;
  font-size: 1.2rem;
  color: var(--text);
  text-align: center;
}

.enoe .btn--ghost {
  width: 100%;
  justify-content: center;
  min-height: 46px;
}


#dlgEntities .btn--ghost{
  border-color: var(--stps-gray);
  color: #000;
}
#dlgEntities .btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--stps-gray);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.076, 1);
  z-index: -1;
  color: var(--white);
  border-color: var(--stps-gray);
}
#dlgEntities .btn .btn--ghost:hover {
 border-color: var(--stps-gray) !important;
}

.enoe .block--entities {
  min-width: 0;
}

.enoe .btnRow--entities {
  margin-bottom: 8px;
}

.enoe .selectedBox {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(97, 18, 50, 0.12);
  background: rgba(255, 255, 255, 0.58);
  height: 136px;
  overflow: hidden;
  min-height: 0;
}

.enoe .selectedBox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.enoe .selectedBox__title {
  font-weight: 800;
  color: rgba(97, 18, 50, 0.92);
  font-size: 1.3rem;
}
.enoe .selectedChips {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}
.enoe .selectedChips::-webkit-scrollbar {
  width: 8px;
}

.enoe .selectedChips::-webkit-scrollbar-thumb {
  background: rgba(97, 18, 50, 0.22);
  border-radius: 999px;
}

.enoe .selectedChips::-webkit-scrollbar-track {
  background: transparent;
}
.enoe .selectedChips__empty {
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.98rem;
}

.enoe .selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 20px;
  background: rgba(97, 18, 50, 0.08);
  border: 1px solid rgba(97, 18, 50, 0.14);
  color: rgba(97, 18, 50, 0.92);
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1;
}

.enoe .selected-chip button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(97, 18, 50, 0.12);
  color: rgba(97, 18, 50, 0.92);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: 0.8rem;
  line-height: 1;
}

.enoe .block {
  min-width: 0;
}

.enoe .block__title {
  min-height: 1.2em;
}

.enoe .block__help {
  min-height: 2.5em;
  line-height: 1.35;
}

.enoe .select select {
  min-height: 44px;
}

.enoe #mapWrap .heat-legend__desc {
  margin: -2px 0 2px;
  font-size: 1.1rem;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.35;
}

.enoe #mapWrap .profiles-map__stripHelp + .profiles-map__stripHelp {
  color: rgba(0, 0, 0, 0.58);
}

.enoe .enoe-main > * {
  min-width: 0;
  max-width: 100%;
}

.enoe #mapWrap *,
.enoe .card * {
  box-sizing: border-box;
}

.enoe #mapWrap .map-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  z-index: 20;
  border-radius: 14px;
}

.enoe #mapWrap .map-loading.is-show {
  display: flex;
}

.enoe #mapWrap .map-loading__spinner {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 3px solid rgba(97, 18, 50, 0.18);
  border-top-color: #611232;
  animation: enoeSpin 0.8s linear infinite;
}

.enoe #mapWrap .map-loading__text {
  font-size: 1rem;
  font-weight: 800;
  color: #611232;
  text-shadow: 0 1px 3px rgba(255,255,255,.8);
}

.enoe .chartWrap {
  position: relative;
}

.enoe .chart-loading {
  position: absolute;
  inset: 14px 0 0 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  z-index: 20;
  border-radius: 14px;
}

.enoe .chart-loading.is-show {
  display: flex;
}

.enoe .chart-loading__spinner {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 3px solid rgba(97, 18, 50, 0.18);
  border-top-color: #611232;
  animation: enoeSpin 0.8s linear infinite;
}

.enoe .chart-loading__text {
  font-size: 1rem;
  font-weight: 800;
  color: #611232;
  text-shadow: 0 1px 3px rgba(255,255,255,.8);
}

.enoe .hist-player {
  display: none;
  align-items: flex-end;
  gap: 18px;
  margin-top: 20px;
  padding: 8px 0 0;
}

.enoe .hist-player.is-show {
  display: flex;
}

.enoe .hist-player__play {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(97, 18, 50, 0.88);
  background: #fff;
  color: #611232;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: all 0.2s ease;
  margin-bottom: 26px;
  box-shadow: 0 2px 8px rgba(97, 18, 50, 0.08);
}
@media (max-width: 640px) {
  .enoe .hist-player__play {
    margin-bottom: 34px;
  }
}

.enoe .hist-player__play:hover {
  background: rgba(97, 18, 50, 0.06);
  transform: translateY(-1px);
}

.enoe .hist-player__track {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 0 8px 0 0;
}

@media (max-width: 640px) {
  .enoe .hist-player__track {
    padding: 0;
  }
}

.enoe .hist-player__rail {
  position: relative;
  height: 32px;
  overflow: visible;
}

.enoe .hist-player__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  border-radius: 999px;
  background: rgba(97, 18, 50, 0.22);
  z-index: 1;
}

.enoe .hist-player__range {
  position: relative;
  z-index: 4;
  width: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.enoe .hist-player__range::-webkit-slider-runnable-track {
  height: 26px;
  background: transparent;
}

.enoe .hist-player__range::-moz-range-track {
  height: 26px;
  background: transparent;
}

.enoe .hist-player__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0;
  height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.enoe .hist-player__range::-moz-range-thumb {
  width: 0;
  height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.enoe .hist-player__progress {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 8px;
  height: 40px;
  border-radius: 999px;
  background: #b38e5d;
  border: 2px solid #611232;
  box-shadow: 0 2px 8px rgba(97, 18, 50, 0.18);
  z-index: 3;
  pointer-events: none;
  transition: left 0.68s linear;
}

.enoe .hist-player__ticks {
  position: relative;
  height: 30px;
  width: 100%;
}
@media (max-width: 640px) {
  .enoe .hist-player__ticks {
    height: 38px;
  }
}

.enoe .hist-player__tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
@media (max-width: 640px) {
  .enoe .hist-player__tick {
    gap: 2px;
  }
}

.enoe .hist-player__tick.is-start {
  transform: translateX(0);
  align-items: flex-start;
}

.enoe .hist-player__tick.is-end {
  transform: translateX(-100%);
  align-items: flex-end;
}

.enoe .hist-player__tick-line {
  width: 1px;
  height: 8px;
  background: rgba(97, 18, 50, 0.16);
}

.enoe .hist-player__tick-text {
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(97, 18, 50, 0.82);
}

@media (max-width: 640px) {
  .enoe .hist-player__tick-text {
    font-size: 0.82rem;
  }
}

.enoe .hist-player__meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 18px;
}

.enoe .hist-player__label {
  text-align: right;
  font-size: 1rem;
  font-weight: 800;
  color: #611232;
}

.enoe .chart-panel__head {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(97, 18, 50, 0.1);
  text-align: center;
}

.enoe .chart-panel__title {
  margin: 0;
  font-family: "Noto Sans", sans-serif;
  font-size: 1.9rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--stps-guinda);
  text-align: center;
}

.enoe .chart-panel__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.enoe .chart-panel__selection {
margin: 0;
  font-family: "Noto Sans", sans-serif;
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.72);
}

.enoe .chart-panel__period {
font-size: 1.6rem;
  font-weight: 800;
  color: rgba(97,18,50,.82);
}

.enoe .chart-panel__desc {
margin-top: 2px;
  font-size: 1.2rem;
  color: var(--text);
  max-width: 100%;
  text-align: center;
}

@keyframes enoeSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .enoe .ctrlbar__actions .btn--ghost {
    width: 100%;
    justify-content: center;
  }
  .enoe .ctrlbar {
  height: auto;
}

.enoe .ctrlbar__actions {
  margin-top: 12px;
}

  .enoe .btnRow--entities {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .enoe .enoe-shell {
    padding: 12px;
    border-radius: 20px;
  }

  .enoe .btnRow--entities {
    flex-direction: column;
    align-items: stretch;
  }

  .enoe .btnRow--entities .btn,
  .enoe .btnRow--entities .pill {
    width: 100%;
    justify-content: center;
  }

  .enoe .chart-panel__title,
  .enoe #mapWrap .map-panel__title {
    font-size: 1.6rem;
  }

  .enoe .chart-panel__selection,
  .enoe #mapWrap .map-panel__selection,
  .enoe .chart-panel__period,
  .enoe #mapWrap .map-panel__period {
    font-size: 1.35rem;
  }

  .enoe .chart-panel__desc,
  .enoe #mapWrap .map-panel__desc {
    font-size: 1.08rem;
  }

  .enoe #chart {
    min-height: 420px;
    height: 420px;
    max-height: none;
  }
}

/* Codigo Cristian */
/* =========================
   PÁGINA BÁSICA POR ENTIDAD
========================= */
.basic-entity-page .profiles__inner {
  max-width: var(--container, 1600px);
  margin-inline: auto;
  padding-inline: var(--pad-x, 16px);
}

.basic-controlsbar__grid {
  grid-template-columns: 1fr 1fr 1fr;
}

.basic-entity-grid {
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  align-items: stretch;
}

/* =========================
   MAPA
========================= */
.basic-entity-page .profiles-card--map {
  display: flex;
  flex-direction: column;
}

.basic-entity-page .profiles-map {
  padding: 1.1rem 1rem 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.basic-entity-page .profiles-map__svg {
  width: 100%;
  height: clamp(320px, 42vw, 520px);
  display: block;
  flex: 1;
}

.basic-entity-page .mx-state {
  fill: var(--map-base, #611232);
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1.2;
  cursor: pointer;
  transition:
    filter 0.14s ease,
    opacity 0.14s ease,
    fill 0.14s ease;
  transform-box: fill-box;
  transform-origin: center;
  will-change: fill, filter, opacity;
}

.basic-entity-page .mx-state:hover,
.basic-entity-page .mx-state.is-hover {
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.18));
}

.basic-entity-page .mx-state.is-selected {
  fill: var(--gold, #b38e5d);
  filter: drop-shadow(0 7px 13px rgba(0, 0, 0, 0.25));
  opacity: 1;
}

.basic-entity-page .mx-group .mx-state:not(.is-selected) {
  opacity: 0.96;
}

/* Tooltip mapa */
.basic-entity-page .mx-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--gold, #b38e5d);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  font-family: "Noto Sans", system-ui, sans-serif;
  pointer-events: none;
  max-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.12s ease,
    visibility 0.12s ease;
  z-index: 30;
}

.basic-entity-page .mx-tooltip.is-show {
  opacity: 1;
  visibility: visible;
}

/* =========================
   TIRA DE ESTADOS
========================= */
.basic-entity-page .profiles-map__stripBlock {
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(97, 18, 50, 0.12);
  background: rgba(255, 255, 255, 0.55);
}

.basic-entity-page .profiles-map__stripHead {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
}

.basic-entity-page .profiles-map__stripHelp {
  color: var(--text, rgba(0, 0, 0, 0.75));
  font-size: 1.05rem;
  line-height: 1.35;
}

.basic-entity-page .state-strip {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 6px 8px;
  border-radius: 14px;
  border: 1px solid rgba(97, 18, 50, 0.12);
  background: rgba(255, 255, 255, 0.55);
  scrollbar-width: thin;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.basic-entity-page .state-chip {
  flex: 0 0 auto;
  width: 36px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
  position: relative;
}

.basic-entity-page .state-chip svg {
  width: 28px;
  height: 22px;
}

.basic-entity-page .state-chip svg path {
  fill: rgba(97, 18, 50, 0.75);
}

.basic-entity-page .state-chip__txt {
  font-weight: 800;
  font-size: 0.72rem;
  color: rgba(97, 18, 50, 0.9);
}

.basic-entity-page .state-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
}

.basic-entity-page .state-chip.is-active {
  border-color: rgba(179, 142, 93, 0.55);
  box-shadow: 0 10px 20px rgba(179, 142, 93, 0.18);
}

.basic-entity-page .state-chip.is-active svg path {
  fill: rgba(179, 142, 93, 0.95);
}

/* Tooltip chips */
.basic-entity-page .chip-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -110%);
  background: var(--gold, #b38e5d);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  padding: 7px 9px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease,
    visibility 0.12s ease;
}

.basic-entity-page .chip-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--gold, #b38e5d);
}

.basic-entity-page .chip-tooltip.is-show {
  opacity: 1;
  visibility: visible;
}

/* =========================
   CARD DE DATOS
========================= */
.basic-data-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.basic-data-card__head {
  justify-content: center;
}

.basic-data-viewer {
  flex: 1;
  min-height: clamp(320px, 42vw, 520px);
  max-height: clamp(320px, 42vw, 520px);
  padding: 1.2rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
}

.basic-data-empty,
.basic-data-error {
  margin: 0;
  text-align: center;
  color: rgba(0, 0, 0, 0.6);
  font-size: 1.05rem;
}

.basic-data-error {
  color: #b42318;
}

.basic-data-card__actions {
  margin-top: auto;
  padding: 0 1rem 1.2rem;
}

/* =========================
   MÉTRICA SIMPLE
========================= */
.basic-metric {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.basic-metric--compact {
  max-width: 430px;
}

.basic-metric__label {
  margin: 0 0 14px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.basic-metric__value {
  margin: 0;
  color: var(--wine, #611232);
  font-size: clamp(2.7rem, 4.2vw, 4.6rem);
  line-height: 1.05;
  font-weight: 800;
  font-family: 'Noto Sans';
}

.basic-metric__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.basic-metric__mini {
  border-radius: 16px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.basic-metric__miniLabel {
  display: block;
  margin-bottom: 8px;
  color: rgba(0, 0, 0, 0.45);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.basic-metric__miniValue {
  color: rgba(0, 0, 0, 0.82);
  font-size: 2.3rem;
  font-weight: 800;
}

/* =========================
   SERVICIO NACIONAL DE EMPLEO
========================= */
.basic-sne-list {
  width: 100%;
  display: grid;
  gap: 14px;
  align-content: start;
}

.basic-sne-card {
  border: 1px solid rgba(97, 18, 50, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  padding: 16px 14px;
}

.basic-sne-card__title {
  margin: 0 0 12px;
  color: var(--wine, #611232);
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  border-bottom: 2px solid rgba(97, 18, 50, 0.22);
  padding-bottom: 8px;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

.basic-sne-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  text-align: center;
}

.basic-sne-card__label {
  display: block;
  margin-bottom: 4px;
  color: rgba(0, 0, 0, 0.45);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.basic-sne-card__value {
  color: rgba(0, 0, 0, 0.82);
  font-size: 1.8rem;
  font-weight: 800;
}

.basic-data-viewer::-webkit-scrollbar {
  width: 10px;
}

.basic-data-viewer::-webkit-scrollbar-thumb {
  background: rgba(97, 18, 50, 0.25);
  border-radius: 999px;
}

.basic-data-viewer::-webkit-scrollbar-track {
  background: transparent;
}

.basic-entity-page .state-chip--text {
  min-width: 42px;
  width: auto;
  padding-inline: 8px;
}

.basic-entity-page .state-chip__txt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(97, 18, 50, 0.9);
  white-space: nowrap;
}

.basic-entity-page .state-chip.is-active .state-chip__txt {
  color: rgba(179, 142, 93, 0.95);
}

.basic-entity-page .state-strip {
  scrollbar-width: thin;
  scrollbar-color: rgba(97, 18, 50, 0.35) transparent;
}

.basic-entity-page .state-strip::-webkit-scrollbar {
  height: 8px;
}

.basic-entity-page .state-strip::-webkit-scrollbar-track {
  background: transparent;
}

.basic-entity-page .state-strip::-webkit-scrollbar-thumb {
  background: rgba(97, 18, 50, 0.3);
  border-radius: 999px;
}
.basic-metric__icon {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto 8px;
}

/* =========================
   BLOQUE INFERIOR EXCEL COMPLETO
========================= */
.basic-excel-full {
  margin-top: clamp(1.2rem, 3vw, 2rem);
}

.basic-excel-full__viewer {
  border-radius: 16px;
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.88);
  max-height: min(78vh, 920px);
  padding: 14px;
}

/* =========================
   TABLA ESTRUCTURADA
========================= */
.basic-excel-table--structured {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-family: "Noto Sans", system-ui, sans-serif;
}

.basic-excel-table--structured td {
  padding: 8px 12px;
  font-size: 1.3rem;
  line-height: 1.3;
  vertical-align: middle;
}

/* Título principal entidad */
.excel-row--entity td {
  background: transparent;
  color: #111;
  font-weight: 800;
  font-size: 2rem;
  text-align: center;
  padding-top: 4px;
  padding-bottom: 2px;
}

.excel-row--meta td:nth-child(1) {
  text-align: left;
  font-weight: 700;
}

.excel-row--meta td:nth-child(2),
.excel-row--meta td:nth-child(3) {
  text-align: center;
}

/* Secciones principales vino */
.excel-row--section td {
  background: var(--stps-guinda);
  color: #fff;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 7px;
  padding-bottom: 7px;
}

.excel-sectionHead__title,
.excel-sectionHead__date {
  color: #fff !important;
}

.excel-row--metaSingle td {
  background: #f6f1f3;
  color: #222;
  font-size: 1.3rem;
  border-top: 1px solid rgba(97, 18, 50, 0.18);
  border-bottom: 1px solid rgba(97, 18, 50, 0.18);
  padding-top: 8px;
  padding-bottom: 8px;
}

.excel-row--metaSingle td:first-child {
  text-align: left;
  font-weight: 700;
  width: 72%;
}

.excel-row--metaSingle td:last-child {
  text-align: right;
  font-weight: 700;
  width: 28%;
}

.excel-row--subblock td {
  background: var(--stps-guinda-2);
  color: var(--white);
  font-weight: 800;
  text-align: right;
  border: 1px solid rgba(97, 18, 50, 0.14);
}


.excel-row--sneHead td:first-child {
  background: var(--stps-guinda-2);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.excel-row--data2 td {
  background: #fff;
  border: 1px solid rgba(97, 18, 50, 0.14);
}

.excel-row--data2 td:first-child {
  width: 68%;
  text-align: left;
}

.excel-row--data2 td:last-child {
  width: 32%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.excel-row--sneHead td {
  background: var(--stps-guinda-2);
  color: var(--white);
  font-weight: 800;
  border: 1px solid rgba(97, 18, 50, 0.14);
}

.excel-cell--splitHead,
.excel-cell--splitValue {
  padding: 0 !important;
}

.excel-splitHead,
.excel-splitValue {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.excel-splitHead span,
.excel-splitValue span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 38px;
  padding: 8px 12px;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.excel-splitHead span {
  justify-content: center;
  font-weight: 800;
  color: var(--white);
}

.excel-splitHead span + span,
.excel-splitValue span + span {
  border-left: 1px solid rgba(97, 18, 50, 0.14);
}

.excel-row--dataSplit td {
  background: #fff;
  border: 1px solid rgba(97, 18, 50, 0.14);
}

.excel-row--dataSplit td:first-child {
  width: 68%;
  text-align: left;
}

.excel-row--dataSplit td:last-child {
  width: 32%;
}
/* Filas normales */
.excel-row--data td {
  background: #fff;
  border: 1px solid rgba(97, 18, 50, 0.14);
}

.excel-cell--label {
  width: 58%;
  text-align: left;
  color: #222 !important;
}

.excel-cell--indented {
  padding-left: 26px !important;
}

.excel-cell--value {
  width: 21%;
  text-align: right;
  color: #222 !important;
  font-variant-numeric: tabular-nums;
}

/* Fuentes */
.excel-row--source td {
  background: #f4eef0;
  color: #3d3d3d;
  font-size: 0.82rem;
  font-style: italic;
  border: 1px solid rgba(97, 18, 50, 0.1);
}

/* Notas */
.excel-row--note td {
  background: #faf7f8;
  color: #444;
  font-size: 0.8rem;
  line-height: 1.45;
  border: 1px solid rgba(97, 18, 50, 0.08);
}

/* Scroll */
.basic-excel-full__viewer::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.basic-excel-full__viewer::-webkit-scrollbar-thumb {
  background: rgba(97, 18, 50, 0.25);
  border-radius: 999px;
}

.basic-excel-full__viewer::-webkit-scrollbar-track {
  background: transparent;
}

.excel-sectionHead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.excel-sectionHead__title {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.excel-sectionHead__date {
  grid-column: 3;
  justify-self: end;
  text-align: right;
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
}
.excel-row--subblockValue td {
  background: var(--stps-guinda-2);
  color: #fff !important;
  font-weight: 800;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.excel-row--subblockValue td:first-child {
  text-align: center;
}

.excel-row--subblockValue td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 28%;
}

.basic-data-viewer,
.basic-excel-full__viewer {
  contain: layout paint;
}
/* Estado: serie histórica */
.enoe .enoe-main.is-hist {
  grid-template-columns: minmax(0, 1fr);
}

.enoe .enoe-main.is-hist > .card {
  grid-column: 1 / -1;
  width: 100%;
}

.enoe #mapWrap.is-hidden {
  display: none !important;
}
.enoe .enoe-main.is-hist #chart {
  height: 780px;
  min-height: 780px;
  max-height: none;
}

.enoe .enoe-main.is-hist .chart-panel__desc {
  max-width: 78ch;
  margin-left: auto;
  margin-right: auto;
}
/* Centrar título y descripción cuando solo está la gráfica */
.enoe .enoe-main.is-hist .chart-panel__head{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
   max-width: 900px;
}

.enoe .enoe-main.is-hist .chart-panel__title{
  text-align: center;
}

.enoe .enoe-main.is-hist .chart-panel__desc{
  text-align: center;
}
/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px) {
  .basic-controlsbar__grid,
  .basic-entity-grid {
    grid-template-columns: 1fr;
  }

  .basic-data-viewer,
  .basic-entity-page .profiles-map__svg {
    min-height: 320px;
  }
    .enoe .enoe-main.is-hist {
    grid-template-columns: 1fr;
  }

  .enoe .enoe-main.is-hist > .card {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .basic-entity-page .profiles-map {
    padding: 0.8rem 0.75rem 0.9rem;
  }

  .basic-entity-page .profiles-map__stripHelp {
    font-size: 0.95rem;
  }

  .basic-metric__split,
  .basic-sne-card__grid {
    grid-template-columns: 1fr;
  }

  .basic-metric__value {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .basic-entity-page .state-chip {
    width: 34px;
    height: 28px;
  }

  .basic-entity-page .state-chip svg {
    width: 24px;
    height: 20px;
  }
    .enoe .enoe-main.is-hist #chart {
    min-height: 420px;
    height: 420px;
  }
}




/* NEGOCIACIONES COLECTIVAS */
.nc-compare {
  background: transparent;
  padding: clamp(1.2rem, 3vw, 2.2rem) 0;
}

.nc-compare__inner {
  max-width: var(--container, 1200px);
  margin-inline: auto;
  padding-inline: var(--pad-x, 16px);
}

.nc-compare .nc-shell {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(97, 18, 50, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
  padding: 18px;

height: 942px;
  overflow: hidden;
}

.nc-compare .nc-board {
  display: grid;
  grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.nc-compare .nc-sidebar {
  min-width: 0;
  padding-right: 12px;
  border-right: 1px solid rgba(97, 18, 50, 0.12);
  height: 100%;
}

.nc-compare .nc-main {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding-left: 6px;
  overflow: hidden;
}

.nc-compare .nc-sidebar,
.nc-compare .nc-main,
.nc-compare .nc-card,
.nc-compare .nc-chartWrap {
  min-height: 0;
}

.nc-compare .nc-card {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.nc-compare .nc-chartWrap {
  overflow: hidden;
}

.nc-compare .nc-chart {
  height: 100%;
}

@media (max-width: 980px) {
  .nc-compare .nc-shell {
    padding: 14px;
        height: auto;
    overflow: visible;
  }

  .nc-compare .nc-board {
    grid-template-columns: 1fr;
  }

  .nc-compare .nc-sidebar {
    padding-right: 0;
    border-right: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(97, 18, 50, 0.12);
  }

  .nc-compare .nc-main {
    padding-left: 0;
    padding-top: 18px;
  }
}

/* barra lateral */
.nc-compare .nc-ctrlbar {
  height: 100%;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 18px 0 0;
}

.nc-compare .nc-ctrlbar__top {
  display: grid;
  gap: 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(97, 18, 50, 0.1);
  padding-bottom: 12px;
}

.nc-compare .nc-ctrlbar__titleWrap {
  display: grid;
  gap: 6px;
  text-align: center;
  justify-items: center;
}

.nc-compare .nc-ctrlbar__title {
  margin: 0;
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.1;
  font-weight: 800;
  color: rgba(97, 18, 50, 0.96);
  letter-spacing: 0.2px;
}

.nc-compare .nc-ctrlbar__intro {
  margin: 0;
  max-width: 45ch;
  font-family: "Noto Sans", sans-serif;
  font-size: 1.2rem;
  color: var(--text);
  text-align: center;
}

.nc-compare .nc-ctrlbar__stack {
  display: grid;
  gap: 14px;
}

.nc-compare .nc-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.nc-compare .nc-block__head {
  display: grid;
  gap: 4px;
}

.nc-compare .nc-block__title {
  font-weight: 800;
  color: rgba(97, 18, 50, 0.92);
  letter-spacing: 0.2px;
  min-height: 1.2em;
}

.nc-compare .nc-block__help {
  color: var(--text, rgba(0, 0, 0, 0.75));
  font-size: 1.05rem;
  line-height: 1.35;
}

/* selects */
.nc-compare .nc-select {
  position: relative;
  display: grid;
  align-items: center;
}

.nc-compare .nc-select select {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(97, 18, 50, 0.18);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 8px 42px 9px 11px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.82);
  outline: none;
  font-size: 1.3rem;
  line-height: 1.2;
  min-height: 44px;
}

.nc-compare .nc-select i {
  position: absolute;
  right: 14px;
  pointer-events: none;
  color: rgba(97, 18, 50, 0.72);
}

.nc-compare .nc-select select:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* multiselect */
.nc-compare .nc-multiselectWrap select {
  width: 100%;
  border: 1px solid rgba(97, 18, 50, 0.18);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 8px 10px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.82);
  outline: none;
  font-size: 1.15rem;
  line-height: 1.25;
  min-height: 132px;
}

/* rango */
.nc-compare .nc-rangeRow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.nc-compare .nc-rangeSep {
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(97, 18, 50, 0.82);
}

/* checks */
.nc-compare .nc-checksHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nc-compare .nc-textBtn {
  border: 0;
  background: transparent;
  color: var(--wine, #611232);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.nc-compare .nc-checks {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 2px;
}

.nc-compare .nc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(97, 18, 50, 0.12);
  background: rgba(255, 255, 255, 0.58);
}

.nc-compare .nc-check input[type="checkbox"] {
  accent-color: #611232;
  margin-top: 2px;
}

.nc-compare .nc-check span {
  font-size: 1.05rem;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.8);
  font-weight: 700;
}

.nc-compare .nc-small {
  color: rgba(0, 0, 0, 0.72);
  font-size: 1.05rem;
}

/* card gráfica */
.nc-compare .nc-card {
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.nc-compare .nc-card,
.nc-compare .nc-main,
.nc-compare .nc-chart-panel,
.nc-compare .nc-chartWrap,
.nc-compare .nc-chart {
  min-width: 0;
}

.nc-compare .nc-chart-panel__head {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(97, 18, 50, 0.1);
  text-align: center;
}

.nc-compare .nc-chart-panel__title {
  margin: 0;
  font-family: "Noto Sans", sans-serif;
  font-size: 1.9rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--stps-guinda);
  text-align: center;
}

.nc-compare .nc-chart-panel__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nc-compare .nc-chart-panel__selection {
  margin: 0;
  font-family: "Noto Sans", sans-serif;
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.72);
}

.nc-compare .nc-chart-panel__period {
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(97, 18, 50, 0.82);
}

.nc-compare .nc-chart-panel__desc {
  margin-top: 2px;
  font-size: 1.2rem;
  color: var(--text);
  max-width: 100%;
  text-align: center;
}

.nc-compare .nc-chartWrap {
  padding: 8px 0 0;
  display: grid;
  gap: 12px;
}

.nc-compare .nc-chart {
  width: 100%;
  min-width: 0;
  height: clamp(360px, 52vh, 620px);
}

/* mensajes */
.nc-compare .nc-msg {
  display: none;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(97, 18, 50, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: rgba(0, 0, 0, 0.78);
  font-weight: 700;
}

.nc-compare .nc-msg.is-show {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* player histórico */
.nc-compare .nc-hist-player {
  display: none;
  align-items: flex-end;
  gap: 18px;
  margin-top: 20px;
  padding: 8px 0 0;
}

.nc-compare .nc-hist-player.is-show {
  display: flex;
}

.nc-compare .nc-hist-player__play {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(97, 18, 50, 0.88);
  background: #fff;
  color: #611232;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: all 0.2s ease;
  margin-bottom: 26px;
  box-shadow: 0 2px 8px rgba(97, 18, 50, 0.08);
}

.nc-compare .nc-hist-player__play:hover {
  background: rgba(97, 18, 50, 0.06);
  transform: translateY(-1px);
}

.nc-compare .nc-hist-player__track {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 0 8px 0 0;
}

.nc-compare .nc-hist-player__rail {
  position: relative;
  height: 32px;
  overflow: visible;
}

.nc-compare .nc-hist-player__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  border-radius: 999px;
  background: rgba(97, 18, 50, 0.22);
  z-index: 1;
}

.nc-compare .nc-hist-player__range {
  position: relative;
  z-index: 4;
  width: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.nc-compare .nc-hist-player__range::-webkit-slider-runnable-track {
  height: 26px;
  background: transparent;
}

.nc-compare .nc-hist-player__range::-moz-range-track {
  height: 26px;
  background: transparent;
}

.nc-compare .nc-hist-player__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0;
  height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.nc-compare .nc-hist-player__range::-moz-range-thumb {
  width: 0;
  height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.nc-compare .nc-hist-player__progress {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 8px;
  height: 40px;
  border-radius: 999px;
  background: #b38e5d;
  border: 2px solid #611232;
  box-shadow: 0 2px 8px rgba(97, 18, 50, 0.18);
  z-index: 3;
  pointer-events: none;
  transition: left 0.68s linear;
}

.nc-compare .nc-hist-player__ticks {
  position: relative;
  height: 30px;
  width: 100%;
}

.nc-compare .nc-hist-player__tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nc-compare .nc-hist-player__tick.is-start {
  transform: translateX(0);
  align-items: flex-start;
}

.nc-compare .nc-hist-player__tick.is-end {
  transform: translateX(-100%);
  align-items: flex-end;
}

.nc-compare .nc-hist-player__tick-line {
  width: 1px;
  height: 8px;
  background: rgba(97, 18, 50, 0.16);
}

.nc-compare .nc-hist-player__tick-text {
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(97, 18, 50, 0.82);
}

.nc-compare .nc-hist-player__meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 18px;
}

.nc-compare .nc-hist-player__label {
  text-align: right;
  font-size: 1rem;
  font-weight: 800;
  color: #611232;
}

.is-hidden {
  display: none !important;
}

/* =========================================================
   Categorías: multiselect visual
========================================================= */
.nc-compare .nc-multiSelect {
  position: relative;
}

.nc-compare .nc-multiSelect__trigger {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(97, 18, 50, 0.18);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 8px 42px 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.82);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  position: relative;
}

.nc-compare .nc-multiSelect__trigger i {
  position: absolute;
  right: 14px;
  color: rgba(97, 18, 50, 0.72);
  pointer-events: none;
}

.nc-compare .nc-multiSelect__text {
  display: block;
  width: calc(100% - 18px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nc-compare .nc-multiSelect__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(97, 18, 50, 0.16);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

.nc-compare .nc-multiSelect__option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(97, 18, 50, 0.1);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nc-compare .nc-multiSelect__option:hover {
  background: rgba(97, 18, 50, 0.04);
  border-color: rgba(97, 18, 50, 0.16);
}

.nc-compare .nc-multiSelect__option input[type="checkbox"] {
  accent-color: #611232;
  margin-top: 2px;
}

.nc-compare .nc-multiSelect__option span {
  font-size: 1.08rem;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.8);
  font-weight: 700;
}

.nc-comparison-summary {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.2rem;
}

.nc-comparison-summary.is-show {
  display: grid;
}

.nc-summary-card {
  min-height: 80px;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(97, 18, 50, 0.12);
  box-shadow: 0 12px 28px rgba(97, 18, 50, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nc-summary-card::before {
content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--gold);
}

.nc-summary-card__label {
display: block;
  color: var(--wine, #611232);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.2vw, 1.7rem);
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.nc-summary-card__value {
display: block;
  color: rgba(0, 0, 0, 0.82);
  font-weight: 700;
  font-size: clamp(1.45rem, 2vw, 1.6rem);
  line-height: 1;
}

.nc-summary-card__percent {
  display: block;
  margin-top: 0.45rem;
  color: rgba(97, 18, 50, 0.82);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.2;
}


@media (max-width: 640px) {
  .nc-compare .nc-hist-player {
    flex-direction: column;
    align-items: stretch;
  }

  .nc-compare .nc-hist-player__play {
    margin-bottom: 0;
    align-self: center;
  }
}

@media (max-width: 768px) {
  .nc-compare .nc-shell {
    padding: 12px;
  }

  .nc-compare .nc-board {
    gap: 14px;
  }

  .nc-compare .nc-chart-panel__title {
    font-size: 1.45rem;
  }

  .nc-compare .nc-chart-panel__selection,
  .nc-compare .nc-chart-panel__period {
    font-size: 1.15rem;
  }

  .nc-compare .nc-chart-panel__desc {
    font-size: 1rem;
  }

  .nc-compare .nc-chart {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .nc-compare .nc-select select,
  .nc-compare .nc-multiSelect__trigger {
    font-size: 1.05rem;
    min-height: 42px;
  }

  .nc-compare .nc-check span,
  .nc-compare .nc-block__help,
  .nc-compare .nc-small {
    font-size: 0.95rem;
  }

  .nc-compare .nc-chart {
    height: 320px;
  }
}